.loop-candy-campaign-header{
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
	padding: 20px;
}
.loop-candy-campaign-header img{
	width: auto;
    height: 100px;
}
.loop-candy-campaign-title{
	margin: 0;
	padding-bottom: 15px;
}
.loop-candy-campaign-description p{
	margin: 0;
}
.loop-candy-dashboard-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
	display: flex;
	flex-direction: column;
	 margin-bottom: 25px;
}
.loop-candy-footer{
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    padding: 20px;
}
.powered-by-section{
	display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}
.powered-logo{
	height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}
.powered-logo:hover {
  transform: scale(1.05);
}
.campaigns-grid {
  display: grid;
	grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.campaign-card {
	background-color: #ffffff;
	border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f1;
    overflow: hidden;
	display: flex;
    flex-direction: column;
    position: relative;
    padding: 15px;
}

.campaign-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.campaign-thumbnail {
	height: 140px;
	position: relative;
	z-index: 1;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-radius: 16px;
}

.campaign-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
	border-radius: 16px;
}

.thumbnail-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 1;
}

.thumbnail-placeholder::after {
  content: 'Campaign Preview';
  font-size: 0.875rem;
}

.campaign-details {
  border-bottom: 1px solid var(--border-color);
  flex-grow: 1;
  position: relative;
  z-index: 2;
  background-color: var(--card-bg);
	padding-top: 30px;
    padding-bottom: 20px;
}

.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
}

.campaign-name {
      font-size: 28px;
    line-height: 1.1;
    font-weight: bold;
    color: #000000;
	margin: 0;
}

.campaign-description {
	font-size: 18px;
    color: #000000;
    line-height: 1.1;
    overflow: hidden;
    font-weight: normal;
	margin: 0;
}

.status-badge {
	padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    display: inline-block;
}

.status-badge.active {
  background-color: #52D3BF;
  color: #ffffff;
}

.status-badge.draft {
	background-color: #dd918a;
	color: #ffffff;
}

.status-badge.paused {
  background-color: #fff4e5;
  color: #f59e0b;
}

.campaign-actions {
}

.campaign-action-btn {
	font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
	margin-right: 10px;
	margin-bottom: 10px;
	text-decoration: none;
}

.shortcode-btn{
	background: linear-gradient(90deg, #ad75f2, #7e9ce2, #52D3BF); 
    color: #ffffff;
	font-size: 18px;
	box-shadow: 0 4px 12px rgba(173, 117, 242, 0.4), 0 6px 20px rgba(82, 211, 191, 0.3);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.sh-btn{
	background: linear-gradient(90deg, #ad75f2, #7e9ce2, #52D3BF); 
    color: #ffffff;
	box-shadow: 0 4px 12px rgba(173, 117, 242, 0.4), 0 6px 20px rgba(82, 211, 191, 0.3);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.sh-btn:hover{
	color: #ffffff;
}

.edit-campaign{
	border-radius: 8px;
    border: 2px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box, /* inner background */ linear-gradient(146deg, #ad75f2, #52D3BF) border-box;
    background-clip: padding-box, border-box;
	color: #52D3BF;
}

.ed-btn{
	border-radius: 8px;
    border: 2px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box, /* inner background */ linear-gradient(146deg, #ad75f2, #52D3BF) border-box;
    background-clip: padding-box, border-box;
	color: #52D3BF;
}

.ed-btn:hover{
	color: #52D3BF;
}

.delete-campaign{
	border-radius: 8px;
    border: 2px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box, /* inner background */ linear-gradient(146deg, #dd918a, #efcfcc) border-box;
    background-clip: padding-box, border-box;
	color: #dd918a;
}

.de-btn{
	border-radius: 8px;
    border: 2px solid transparent;
    background: linear-gradient(#ffffff, #ffffff) padding-box, /* inner background */ linear-gradient(146deg, #dd918a, #efcfcc) border-box;
    background-clip: padding-box, border-box;
	color: #dd918a;
}

.de-btn:hover{
	color: #dd918a;
}

.activate-campaign, .deactivate-campaign{
	background: linear-gradient(90deg, #e8f4ed, #dde6e3);
    color: #0b100a;
    border: 2px solid #939a98;
	font-size: 16px;
}

.create-campaign-btn{
	background: linear-gradient(90deg, #ad75f2, #7e9ce2, #52D3BF);
    color: #ffffff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(173, 117, 242, 0.4), 0 6px 20px rgba(82, 211, 191, 0.3);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 0;
}


.empty-state-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 32px;
  text-align: center;
  max-width: 400px;
}

.empty-state-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.wizard-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  max-height: 85vh;
}

.wizard-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background-color: #f8fafc;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  padding: 0 8px;
}

.edit_click_wizard_step{
	cursor: pointer;
}

.wizard-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: #e2e8f0;
  z-index: 1;
}

.wizard-step.active:not(:last-child)::after {
  background-color: #2563eb;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.wizard-step.active .step-number {
  background-color: #2563eb;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step-label {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
}

.wizard-step.active .step-label {
  color: #2563eb;
  font-weight: 500;
}

.wizard-content {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
  max-height: 70vh;
  display: block;
  visibility: visible;
  opacity: 1;
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
  visibility: visible;
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-content-inner {
  display: flex;
  flex-direction: column;
}

.step-content-inner h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 24px 0;
  color: #1e293b;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.wizard-columns {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.wizard-column {
  flex: 1;
  min-width: 0; /* Prevent flex items from overflowing */
  display: block;
  visibility: visible;
}

.form-section {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  display: block;
  visibility: visible;
  opacity: 1;
}

.form-section:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1e293b;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.form-row {
  margin-bottom: 12px;
  display: block;
  visibility: visible;
  opacity: 1;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #334155;
  visibility: visible;
  opacity: 1;
}

.form-input, 
.form-textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
  display: block;
  visibility: visible;
  opacity: 1;
}

.form-input:focus, 
.form-textarea:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 150px;
}

.form-helper {
  margin-top: 2px;
  font-size: 0.7rem;
  color: #64748b;
}

.social-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.reward-card, .initial-reward-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reward-card:hover, .initial-reward-card:hover{
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reward-header, .initial-reward-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.reward-header h3, .initial-reward-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: #1e293b;
}

.remove-reward {
  background-color: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.remove-reward:hover {
  color: #ef4444;
}

.reward-columns {
  display: flex;
  gap: 16px;
}

.reward-column {
  flex: 1;
  min-width: 0; /* Prevent flex items from overflowing */
}

.merge-tags-helper {
  background-color: #f1f5f9;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 8px;
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-name {
  font-size: 0.875rem;
  color: #64748b;
}

.image-upload-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.image-upload-container button {
  min-width: 120px;
}

.image-preview {
  width: 80px;
  height: 80px;
  background-color: #f1f5f9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.75rem;
  border: 1px dashed #cbd5e1;
  transition: all 0.2s ease;
}

.image-preview:hover {
  border-color: #94a3b8;
}

.image-preview.empty::after {
  content: 'No image';
}

.social-image-preview {
  width: 160px;
  height: 84px;
  background-color: #f1f5f9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.75rem;
  border: 1px dashed #cbd5e1;
  transition: all 0.2s ease;
}

.social-image-preview:hover {
  border-color: #94a3b8;
}

.social-image-preview::after {
  content: 'No image';
}

.review-section {
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  background-color: #f8fafc;
  transition: all 0.2s ease;
}

.review-section:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.review-item {
  display: flex;
  margin-bottom: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

.review-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.review-label {
  font-weight: 500;
  color: #334155;
  width: 140px;
  flex-shrink: 0;
}

.review-value {
  color: #64748b;
  flex-grow: 1;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.review-reward {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
  background-color: white;
}

.review-reward:last-child {
  margin-bottom: 0;
}

.review-reward-header h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1e293b;
}

.review-reward-details p {
  margin: 0 0 8px 0;
  font-size: 0.875rem;
  color: #64748b;
}

.button-primary {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-block;
  visibility: visible;
   opacity: 1;
}

.button-primary:hover {
  background-color: #1d4ed8;
}

.button-secondary {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: normal !important;
  display: inline-block;
  visibility: visible;
  opacity: 1;
}

.button-secondary:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.button-container {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.wizard-footer {
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
  background-color: #f8fafc;
  display: block;
  visibility: visible;
  text-align: right;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  visibility: visible;
}

.wizard-cancel {
  color: #64748b;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-block;
  visibility: visible;
  opacity: 1;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none; /* Changed from flex !important to none */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.modal-header {
  padding: 12px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.modal-close {
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
}

.shortcode-group {
  margin-bottom: 20px;
}

.shortcode-group:last-child {
  margin-bottom: 0;
}

.shortcode-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #334155;
}

.shortcode-field {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.shortcode-field code {
  flex-grow: 1;
  padding: 8px 12px;
  background-color: #f1f5f9;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.875rem;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.copy-btn {
  padding: 6px 12px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background-color: #e2e8f0;
}

/* #loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading-indicator .loop-spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;   
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} */

#loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); /* semi-transparent black overlay */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

#loading-indicator .loader-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
    max-width: 90%;   /* responsive width */
    width: 400px;     /* ideal default width */
    box-sizing: border-box;
}

#loading-indicator .loop-spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;   /* Light gray border */
    border-top: 6px solid #3498db; /* Blue top border (spinner color) */
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

#loading-indicator .loader-message {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
    word-wrap: break-word;  /* long words break */
    line-height: 1.5;
}

/* Spinner Animation */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth fade-in effect */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.loop-candy-copy-button:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

.loop-candy-copy-button.copied {
    background-color: #28a745;
    animation: pulse 0.5s;
	border-color: #28a745;
}

.loop-candy-copy-button.error {
    background-color: #f44336;
}

.loop-candy-copy-button.loop-candy-button-clicked {
    transform: scale(0.95);
}

.loop-copy-highlight {
    animation: highlight-pulse 1s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes highlight-pulse {
    0% { background-color: transparent; }
    30% { background-color: rgba(33, 150, 243, 0.2); }
    100% { background-color: transparent; }
}

.loop-candy-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.modal.show {
  display: flex;
}

#shortcode-modal {
  z-index: 10000;
}

.loop-candy-dashboard-welcome {
    margin: 0;
	padding-bottom: 15px;
}

.loop-candy-dashboard-stats {
    display: flex;
    gap: 20px;
	justify-content: center;
}

.loop-candy-stat-item {
    border-radius: 6px;
    padding: 10px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: center;
    border: 1px solid #e9ecef;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 100px;
}

.loop-candy-stat-label {
    display: block;
}

.loop-candy-tabs {
	border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.loop-candy-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.loop-candy-tabs-nav li {
    margin-right: 5px;
	margin: 0;
    padding: 0;
}

.loop-candy-tabs-nav li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 4px 4px 0 0;
    border: 1px solid transparent;
	transition: all 0.2s;
}

.loop-candy-tabs-nav li.active a {
    border-color: #dee2e6 #dee2e6 #fff;
	border-bottom: 2px solid #4a6bdf;
}

.loop-candy-tabs-nav li:not(.active) a:hover {
    border-color: #f8f9fa #f8f9fa #dee2e6;
}

.loop-candy-tabs-content {
    padding: 20px;
}

.loop-candy-tab-content {
    display: none;
}

.loop-candy-tab-content.active {
    display: block;
}

.loop-candy-tab-content h4 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.loop-candy-stats-summary {
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e9ecef;
	margin-bottom: 20px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.loop-candy-stat-row {
	display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
	margin-bottom: 8px;
    padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.loop-candy-stat-row:last-child {
    border-bottom: none;
	margin-bottom: 0;
    padding-bottom: 0;
}

.loop-candy-stat-row .loop-candy-stat-label {
    display: inline;
}

.loop-candy-stat-row .loop-candy-stat-value {
    display: inline;
}

.loop-candy-stat-value{
	padding-bottom: 10px;
}

.loop-candy-referral-progress {
    margin-top: 25px;
	margin-bottom: 25px;
}

.loop-candy-progress-bar-container {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
	margin-bottom: 10px;
}

.loop-candy-progress-bar {
    height: 100%;
    background-color: #4a6bdf;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.loop-candy-progress-labels {
    display: flex;
    justify-content: space-between;
}

.loop-candy-referred-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 10px;
	transition: all 0.2s ease;
}

.loop-candy-referred-date {
	text-align: right;
}

.loop-candy-loading {
    font-style: italic;
    text-align: center;
    padding: 15px;
	animation: pulse 1.5s infinite ease-in-out;
}

.loop-candy-empty-list {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-top: 10px;
	font-style: italic;
}

.loop-candy-referral-link-container {
    margin-top: 15px;
	margin-bottom: 15px;
}

.loop-candy-referral-link-box {
    display: flex;
}

.loop-candy-copy-message {
    margin-top: 5px;
}

.loop-candy-social-sharing {
    border-top: 1px solid #e9ecef;
	padding-top: 25px;
	padding-bottom: 25px;
}

.loop-candy-social-sharing-title{
	margin: 0;
	padding-bottom: 15px;
}

.loop-candy-rewards-list {
    margin-top: 15px;
}

.loop-candy-reward-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background-color: #fff;
}

.reward-item-div1{
	width: 10%;
	padding-right: 15px;
}

.loop-candy-reward-item.eligible {
    border-color: #28a745;
    background-color: #f8fff8;
}

.loop-candy-reward-item.claimed {
    border-color: #6c757d;
    background-color: #f8f9fa;
    opacity: 0.8;
}

.loop-candy-reward-info {
    flex: 1;
    padding-right: 15px;
}

.loop-candy-reward-name {
    margin: 0;
	padding-bottom: 15px;
}

.loop-candy-reward-description {
    margin: 0;
	padding-bottom: 15px;
}

.loop-candy-threshold-label {
    font-weight: 500;
}

.loop-candy-reward-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
	padding: 3px 8px;
    font-weight: 600;
}

.loop-candy-status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.loop-candy-status-badge.locked {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.loop-candy-empty-rewards {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-top: 10px;
}

.loop-candy-signup-section {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    padding: 20px;
}

.loop-candy-signup-section h3,
.loop-candy-signup-section h4 {
    margin: 0;
	padding-bottom: 15px;
    text-align: center;
}

.loop-candy-signup-section p {
    margin: 0;
	padding-bottom: 15px;
    text-align: center;
}

.loop-candy-form-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loop-candy-form-row input[type="text"],
.loop-candy-form-row input[type="email"] {
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    transition: 0.3s all ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.loop-candy-form-row input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

.loop-candy-email-verify-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.loop-candy-email-verify-form .loop-candy-form-row {
    flex: 1;
    margin-bottom: 0;
}

.loop-candy-error-message {
    font-size: 0.85rem;
    margin-left: 5px;
	margin-top: 5px;
	display: block;
}

.loop-candy-message {
    padding: 12px 20px;
    background-color: #ecfdf5;
    border-left: 5px solid #047857;
    border-radius: 8px;
    margin-top: 20px;
	margin-bottom: 20px;
    box-shadow: 0 3px 6px rgba(4, 120, 87, 0.1);
    text-align: center;
}

.reward-preview-sub1{
	width: 10%;
}
.reward-preview-sub2{
	width: 90%;
}

.loop-candy-referral-progress h5 {
	margin: 0;
	padding-bottom: 15px;
}

.loop-candy-progress-info {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
}

.loop-candy-referred-list h5 {
	margin: 0;
	padding-bottom: 15px;
}

.loop-candy-referred-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.loop-candy-referred-info {
    flex: 1;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loop-candy-next-reward {
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e7ff;
    position: relative;
    overflow: hidden;
	margin-bottom: 25px;
}

.loop-candy-next-reward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.loop-candy-next-reward-title {
    margin: 0;
}

.loop-candy-reward-preview {
	display: flex;
	gap: 15px;
}

.loop-candy-reward-cta {
    margin: 0;
    font-style: italic;
}

.loop-candy-referral-link-title{
	margin: 0;
	padding-bottom: 15px;
}

.loop-candy-referral-link-message{
	margin: 0;
	padding-bottom: 15px;
}

.loop-candy-referral-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
}

.loop-candy-referral-header {
    margin-bottom: 15px;
}

.loop-candy-referral-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.loop-candy-referral-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.loop-candy-referral-link {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.loop-candy-referral-link-mainbox{
	padding: 20px;
    margin-bottom: 25px;
}

.loop-candy-copy-button {
    padding: 10px 15px;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.loop-candy-social-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.loop-candy-reward-dashboard .notice-message{
	padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.loop-candy-reward-dashboard{
	text-align: center;
}

.reward-title{
    margin: 0;
	padding-bottom: 15px;
}

.reward-description{
    margin: 0;
	padding-bottom: 15px;
}

.reward-text{
    padding: 20px;
    border-radius: 6px;
    margin: 0;
}

.reward-button {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.loop-candy-copy-button:active,
.loop-candy-social-button:active {
    animation: pulse 0.3s ease-in-out;
}

.loop-candy-sharing-cta {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f5f9ff 0%, #e0e7ff 100%);
    border-radius: 8px;
    border: 2px dashed #4a6bdf;
    position: relative;
    overflow: hidden;
}

.loop-candy-sharing-cta::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background-color: #4CAF50;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.loop-candy-sharing-cta-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.loop-candy-sharing-cta-subtitle {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.loop-candy-social-buttons-enhanced {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.loop-candy-social-button-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    min-width: 80px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.loop-candy-social-button-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.loop-candy-social-button-enhanced.facebook {
    background-color: #3b5998;
}

.loop-candy-social-button-enhanced.twitter {
    background-color: #1da1f2;
}

.loop-candy-social-button-enhanced.linkedin {
    background-color: #0077b5;
}

.loop-candy-social-button-enhanced.email {
    background-color: #777;
}

.loop-candy-social-icon-enhanced {
    font-size: 24px;
    margin-bottom: 8px;
}

.loop-candy-social-text-enhanced {
    font-size: 14px;
    font-weight: 600;
}

.loop-candy-points-indicator {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.loop-candy-copy-button-enhanced {
    padding: 12px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.loop-candy-copy-button-enhanced:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.loop-candy-copy-button-enhanced:active {
    transform: scale(0.98);
}

.loop-candy-copy-button-enhanced::before {
    content: '📋';
    margin-right: 8px;
    font-size: 18px;
}

.loop-candy-share-reminder {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    max-width: 300px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s ease;
}

.loop-candy-share-reminder.visible {
    transform: translateY(0);
    opacity: 1;
}

.loop-candy-share-reminder-icon {
    font-size: 24px;
    margin-right: 10px;
    color: #4a6bdf;
}

.loop-candy-share-reminder-text {
    font-size: 14px;
    color: #333;
}

.loop-candy-share-reminder-close {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(74, 107, 223, 0.5); }
    50% { box-shadow: 0 0 20px rgba(74, 107, 223, 0.8); }
    100% { box-shadow: 0 0 5px rgba(74, 107, 223, 0.5); }
}

.loop-candy-share-now-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #4a6bdf;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
    animation: glow 2s infinite;
}

.loop-candy-share-now-button:hover {
    background-color: #3a5bcf;
    transform: scale(1.05);
}

.loop-candy-full-width-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.loop-candy-full-width-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.loop-candy-standalone-page {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.loop-candy-standalone-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.loop-candy-standalone-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    overflow: hidden;
}

#share .loop-candy-social-buttons {
    display: none !important;
}

#share .loop-candy-share-earn-container {
    display: none !important;
}

.loop-candy-social-buttons-extended .loop-candy-social-button {
    display: none !important;
}

#share .loop-candy-referral-link-box:nth-of-type(2) {
    display: none !important;
}

#share .loop-candy-share-button:nth-of-type(2) {
    display: none !important;
}

.admin-debug-container {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.admin-debug-header {
    background: #eee;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-debug-content {
    padding: 15px;
    display: none;
    max-height: 300px;
    overflow: auto;
}

.admin-debug-content.visible {
    display: block;
}

.loop-candy-campaign-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.5;
}

.loop-candy-form-row.has-error input,
.loop-candy-form-row.has-error textarea {
    border-color: #f44336;
    box-shadow: 0 0 0 1px #f44336;
}

.loop-candy-field-error {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.loop-candy-button-loading {
    position: relative;
    color: transparent !important;
}

.loop-candy-button-loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    animation: spin 1s infinite linear;
}

.loop-candy-form-loading {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loop-candy-signup-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

#loop-candy-signup-message.success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

#loop-candy-signup-message.error {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.loop-candy-form-row input:focus,
.loop-candy-form-row textarea:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.loop-candy-confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loop-candy-confirmation-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.loop-candy-confirmation-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
}

.loop-candy-confirmation-content p {
    color: #666;
    margin-bottom: 20px;
}

.loop-candy-confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.loop-candy-confirm-yes,
.loop-candy-confirm-no {
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.loop-candy-confirm-yes {
    background-color: #4CAF50;
    color: white;
}

.loop-candy-confirm-yes:hover {
    background-color: #45a049;
}

.loop-candy-confirm-no {
    background-color: #f5f5f5;
    color: #333;
}

.loop-candy-confirm-no:hover {
    background-color: #e0e0e0;
}

.loop-candy-countdown-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loop-candy-countdown-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.loop-candy-countdown-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
}

.loop-candy-countdown-content p {
    color: #666;
    margin-bottom: 20px;
}

.loop-candy-countdown-timer {
    font-size: 48px;
    font-weight: bold;
    color: #2196F3;
    margin: 20px 0;
    animation: pulse 1s infinite;
}

.loop-candy-confirm-share {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background-color: #4CAF50;
    color: white;
    width: 100%;
    font-size: 16px;
}

.loop-candy-confirm-share:not([disabled]):hover {
    background-color: #45a049;
}

.loop-candy-confirm-share[disabled] {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.loop-candy-reward-claims {
    margin: 30px 0;
}

.loop-candy-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.loop-candy-reward-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.loop-candy-reward-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.loop-candy-reward-header {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loop-candy-reward-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.loop-candy-reward-status.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.loop-candy-reward-status.status-processing {
    background-color: #d1ecf1;
    color: #0c5460;
}

.loop-candy-reward-status.status-fulfilled {
    background-color: #d4edda;
    color: #155724;
}

.loop-candy-reward-status.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.loop-candy-reward-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.loop-candy-reward-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loop-candy-reward-body {
    padding: 15px;
}

.loop-candy-reward-body p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.loop-candy-reward-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.loop-candy-reward-link:hover {
    background-color: #005a87;
    color: #fff;
}

.loop-candy-reward-text {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.loop-candy-reward-notes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.loop-candy-reward-notes h5 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.loop-candy-reward-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #777;
}

.loop-candy-reward-meta span {
    display: block;
    margin-bottom: 5px;
}

.loop-candy-reward-code {
    font-family: monospace;
}

.loop-candy-campaign-image{
	font-size: 0;
	padding-bottom: 15px;
}

.template-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.template-option {
  position: relative;
  cursor: pointer;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  background-color: #fff;
  border: 2px solid transparent;
}

.template-option:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.template-option input[type="radio"] {
  display: none;
}

.template-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.template-content img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eee;
  transition: transform 0.3s ease;
}

.template-title {
  width: 100%;
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 16px;
  background-color: #f8f9fa;
  color: #333;
}

.template-option input[type="radio"]:checked ~ .template-content {
  border: 2px solid #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
} 


/* new css */
.tp-grid-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px;
}

.tp-grid-item {
  flex: 0 0 calc(50% - 15px); /* two per row */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  margin-bottom: 15px;
}

.tp-grid-item:hover {
  transform: translateY(-6px);
}

.tp-grid-item img {
  width: 100%;
  height: auto;
  display: block;
}

.temp_img_title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 15px;
  text-align: center;
  color: #333;
}
	
	div#TB_ajaxContent{
		width: 100% !important;
		padding:0;
	}

    
/* new css */
.wizard-columns.select-temp-main{
	display: block;
}

.socail_sharing_main{
	padding: 10px;
}

.socail_sharing_head{
	padding-bottom: 5px;
    font-weight: 500;
    color: #334155;
}

.socail_sharing_image_div{
	width: 30%;
}

/* radio button */
/* Container */
.cm-radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 8px 0 24px;
  align-items: start;
}

/* Hide default radio but keep it accessible */
.cm-radio input[type="radio"]{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Label acts as the clickable area */
.cm-radio {
  display: block;
  cursor: pointer;
  position: relative;
  border-radius: 10px;
  padding: 0;
}

/* Card look */
.cm-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .06s ease;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}

/* Icon */
.cm-icon{
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:8px;
  padding:6px;
  background:linear-gradient(180deg,#111827,#374151);
  fill: none;
  stroke: #fff;
}

/* Text block */
.cm-text{ flex:1; min-width:0; }
.cm-title{
  font-weight:600;
  font-size:15px;
  color:#111827;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.cm-desc{
  font-size:13px;
  color:#6b7280;
  margin-top:4px;
  line-height:1.2;
  max-height:2.4em;
  overflow:hidden;
}

/* check mark shown on selected */
.cm-check{
  flex:0 0 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:scale(.8);
  transition:opacity .12s ease, transform .12s ease;
  color:#fff;
  background:linear-gradient(180deg,#059669,#10b981);
  border-radius:6px;
  width:28px;
  height:28px;
}

/* Hover/focus styles for card (when not selected) */
.cm-radio:hover .cm-card,
.cm-radio input[type="radio"]:focus + .cm-card{
  border-color:#cbd5e1;
  box-shadow: 0 6px 18px rgba(2,6,23,0.06);
  transform: translateY(-2px);
}

/* Selected state */
.cm-radio input[type="radio"]:checked + .cm-card{
  border-color:#10b981;
  box-shadow: 0 8px 30px rgba(16,185,129,0.12);
}
.cm-radio input[type="radio"]:checked + .cm-card .cm-check{
  opacity:1;
  transform:scale(1);
}

/* Focus ring for keyboard users */
.cm-radio input[type="radio"]:focus + .cm-card{
  outline: 3px solid rgba(34,197,94,0.12);
  outline-offset: 2px;
}

.lc-notice-box {
    border: 1px solid #e74c3c;
    background-color: #fdecea;
    color: #c0392b;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


.lc-notice-box p {
    margin: 0;
}

.note-instruction{
	margin-top: 8px;
}

/* Small screens tweak */
@media (max-width:420px){
  .cm-card { padding:12px; gap:10px; }
  .cm-icon{ width:40px; height:40px; flex:0 0 40px; }
  .cm-title{ font-size:14px; }
  .cm-desc{ font-size:12px; }
}
/* radio button */

@media (max-width: 480px) {
	.loop-candy-email-verify-form {
        flex-direction: column;
    }

    #loop-verify-button {
        width: 100%;
    }
	.loop-candy-dashboard-stats {
        flex-direction: column;
        gap: 20px;
    }
	.loop-candy-confirmation-content {
        padding: 16px;
    }
    
    .loop-candy-confirmation-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .loop-candy-confirm-yes,
    .loop-candy-confirm-no {
        width: 100%;
    }
	.loop-candy-countdown-content {
        padding: 16px;
    }
    
    .loop-candy-countdown-timer {
        font-size: 36px;
    }
}

@media screen and (max-width: 576px) {
  .wizard-header {
    padding: 16px;
  }
  
  .wizard-content {
    padding: 16px;
  }
  
  .step-content-inner h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }
  
  .form-section h3 {
    font-size: 1rem;
  }
  
  .wizard-footer {
    padding: 12px 16px;
  }
  
  .wizard-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }
  
  .wizard-cancel {
    text-align: center;
    padding: 8px 0;
  }
  
  .button-primary,
  .button-secondary {
    width: 100%;
  }
  
  .image-upload-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 768px) {
.wizard-container {
    max-height: 95vh;
  }
  
  .wizard-steps {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .wizard-step {
    flex: 0 0 auto;
    min-width: 100px;
  }
  
  .wizard-step:not(:last-child)::after {
    width: 50px;
    right: -25px;
  }
  
  .social-points-grid {
    grid-template-columns: 1fr;
  }
  
  .review-grid {
    grid-template-columns: 1fr;
  }
  
  .review-section {
    padding: 16px;
  }
  
  .review-item {
    flex-direction: column;
  }
  
  .review-label {
    width: 100%;
    margin-bottom: 4px;
  }
  
  .loop-candy-referral-link-box {
        display: flex;
        flex-direction: column;
    }
    
    .loop-candy-referral-link {
        margin-bottom: 8px;
    }
    
    .loop-candy-copy-button {
        width: 100%;
        padding: 10px;
		border-radius: 0 0 4px 4px;
    }
		.campaigns-grid{
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
	.wizard-footer button{
		margin-bottom: 10px !important;
	}
	#add-reward{
		margin-bottom: 10px;
	}
      .loop-candy-dashboard-stats {
        flex-direction: column;
        gap: 10px;
		flex-wrap: wrap;
    }
    
    .loop-candy-tabs-nav {
        flex-wrap: wrap;
    }
    
    .loop-candy-tabs-nav li {
        margin-bottom: 5px;
    }
    
    .loop-candy-stat-row {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .loop-candy-stat-row .loop-candy-stat-value {
        margin-top: 5px;
    }
    
    .loop-candy-social-buttons {
        flex-direction: column;
        gap: 8px;
		grid-template-columns: repeat(2, 1fr);
    }
    
    .loop-candy-reward-item {
        flex-direction: column;
    }
    
    .loop-candy-reward-info {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .loop-candy-reward-status {
        align-items: flex-start;
        width: 100%;
    }
	    .loop-candy-stats-summary {
        padding: 12px;
    }
    
    .loop-candy-referred-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .loop-candy-referred-date {
        text-align: left;
        margin-top: 5px;
    }
	    .loop-candy-prominent-sections {
        grid-template-columns: 1fr;
    }
	  .loop-candy-social-buttons-enhanced {
        flex-wrap: wrap;
    }
    
    .loop-candy-social-button-enhanced {
        min-width: 70px;
        padding: 10px;
    }
    
    .loop-candy-share-reminder {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }
	    .loop-candy-full-width-content,
    .loop-candy-standalone-content {
        padding: 20px;
    }
    
    .loop-candy-standalone-container {
        padding: 10px;
    }
	
	.loop-candy-form-row {
        margin-bottom: 20px;
    }
    
    .loop-candy-error-message {
        font-size: 0.8rem;
    }
	 .loop-candy-rewards-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 992px) {
	.wizard-columns,
  .reward-columns {
    flex-direction: column;
    gap: 24px;
  }
  
  .social-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wizard-content {
    padding: 20px 24px;
  }
  
  .form-section {
    padding: 16px;
  }
}

@media screen and (max-width: 1200px) {
	.wizard-container {
    width: 98%;
  }
}

@media screen and (min-width: 1400px) {
	.social-points-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


@media screen and (max-height: 700px) {
  .wizard-container {
    max-height: 95vh;
  }
  
  .wizard-header {
    padding: 12px 16px;
  }
  
  .wizard-content {
    padding: 12px 16px;
  }
  
  .form-section {
    padding: 10px;
    margin-bottom: 12px;
  }
  
  .form-row {
    margin-bottom: 8px;
  }
  
  .step-content-inner h2 {
    font-size: 1.125rem;
    margin-bottom: 12px;
  }
}

@media screen and (max-height: 800px) {
  .form-row {
    margin-bottom: 8px;
  }
  
  .form-section {
    padding: 12px;
    margin-bottom: 16px;
  }
  
  .form-section h3 {
    margin-bottom: 12px;
    padding-bottom: 6px;
  }
  
  .step-content-inner h2 {
    margin-bottom: 16px;
    padding-bottom: 8px;
  }
  
  .form-input, 
  .form-textarea {
    padding: 6px 10px;
  }
  
  .form-textarea {
    min-height: 60px;
  }
  
  .image-preview {
    width: 80px;
    height: 80px;
  }
  
  .social-image-preview {
    width: 160px;
    height: 84px;
  }
}

@media screen and (max-height: 900px) {
  .wizard-container {
    max-height: 90vh;
  }
  
  .form-section {
    padding: 12px;
  }
  
  .wizard-content {
    padding: 16px 24px;
  }
}

@media (prefers-color-scheme: dark) {
    .loop-candy-standalone-page {
        background-color: #222;
    }
    
    .loop-candy-standalone-content,
    .loop-candy-full-width-content {
        background-color: #333;
        color: #f5f5f5;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
}

@media (forced-colors: active) {
    .loop-candy-standalone-content,
    .loop-candy-full-width-content {
        border: 1px solid CanvasText;
    }
}

@media print {
  .wizard-container {
    box-shadow: none;
    max-height: none;
  }
  
  .wizard-content {
    overflow: visible;
  }
  
  .wizard-step-content {
    display: block;
    page-break-after: always;
  }
  
  .wizard-footer {
    display: none;
  }
}



