body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f7;
    color: #222;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    color: #e5e7eb;
}

.controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.controls input[type="text"],
.controls select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 14px;
}

.controls input::placeholder {
    color: rgba(255,255,255,0.5);
}

.controls select {
    cursor: pointer;
}

.featured-section {
    margin-bottom: 36px;
}

.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    color: #ffffff;
}

.section-header p {
    color: rgba(255,255,255,0.7);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.featured-card {
    border: 2px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

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

.deal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}

.deal-card-topbar {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 10px 14px;
    text-transform: uppercase;
}

.deal-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.deal-card-body h2 {
    font-size: 16px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 🔥 LIMIT DESCRIPTION TO 3 LINES */
.deal-card-body p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
}

.deal-form {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    max-width: 800px;
}

.deal-form input,
.deal-form textarea,
.deal-form select {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
}

.deal-form input::placeholder,
.deal-form textarea::placeholder {
    color: #9ca3af;
}

.deal-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.deal-card a {
    display: inline-block;
    margin-top: 10px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.deal-card a:hover {
    text-decoration: underline;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-checks {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.btn-primary {
    background: #111827;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    opacity: 0.92;
}
.deal-card img {
    margin-bottom: 10px;
}

.deal-card a {
    display: inline-block;
    margin-top: auto;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.deal-card a:hover {
    text-decoration: underline;
}

.deal-detail-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.deal-detail-body {
    padding: 24px;
}

.deal-detail-body img {
    width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

.deal-price {
    font-size: 20px;
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    margin-left: 10px;
    color: #777;
}

.deal-savings {
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 10px;
}

.buy-button {
    display: inline-block;
    margin-top: 20px;
    background: #111827;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.buy-button:hover {
    opacity: 0.9;
}

.related-section {
    margin-top: 40px;
}

.related-section h2 {
    margin-bottom: 16px;
}

.deal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.deal-table th,
.deal-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.deal-table th {
    text-align: left;
}

.admin-nav {
    background: #111827;
    padding: 12px 20px;
    display: flex;
    gap: 20px;
}

.admin-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.admin-nav a:hover {
    opacity: 0.8;
}

.admin-nav a.active {
    border-bottom: 2px solid #3b82f6;
}

.deal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.deal-table th,
.deal-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
}

.deal-table th {
    background: #f9fafb;
    font-size: 14px;
    font-weight: 700;
}

.admin-category-badge {
    display: inline-block;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-featured {
    background: #fef3c7;
    color: #92400e;
}

.admin-actions {
    white-space: nowrap;
}

.btn-link {
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
    font-weight: 600;
}

.edit-link {
    color: #2563eb;
}

.delete-link {
    color: #dc2626;
}

.btn-link:hover {
    text-decoration: underline;
}

.admin-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin: 16px 0 20px;
    font-weight: 600;
}

.success-alert {
    background: #dcfce7;
    color: #166534;
}

.delete-alert {
    background: #fee2e2;
    color: #991b1b;
}

.error-alert {
    background: #fef3c7;
    color: #92400e;
}

.toggle-link {
    color: #0f766e;
}

.feature-link {
    color: #92400e;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    white-space: normal;
}

.toggle-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    transition: all 0.2s ease;
    text-decoration: none;
    background: #d1d5db;
}

.toggle-switch .toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 999px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch.is-on {
    background: #16a34a;
}

.toggle-switch.featured-on {
    background: #f59e0b;
}

.toggle-switch.is-on .toggle-knob,
.toggle-switch.featured-on .toggle-knob {
    left: 23px;
}

.toggle-switch:hover {
    opacity: 0.9;
}

/* ==== Facebook Builder ==== */
.fb-builder-section {
    margin-bottom: 32px;
}

.fb-comment-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.fb-comment-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.fb-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    background: #f9fafb;
}

.copy-btn {
    margin-top: 8px;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.copy-btn:hover {
    opacity: 0.9;
}

.fb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 20px 0 12px;
}

.fb-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.fb-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.fb-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.fb-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.fb-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bulk-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-actions-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.secondary-btn {
    background: #374151;
}

.fb-select-row {
    margin-bottom: 12px;
}

.fb-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
/* ==== END FACEBOOK ==== */

/* ===== HERO SECTION ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 30%),
        linear-gradient(180deg, #0b1220 0%, #111827 100%);
    color: #e5e7eb;
}

.hero-section {
    position: relative;
    margin: 10px 0 32px;
    padding: 36px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    color: #fff;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.25), transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(96, 165, 250, 0.16), transparent 20%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-section h1 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-tagline {
    margin: 0 0 24px;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-stat {
    min-width: 110px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-stat-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.hero-stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.72);
}
/* ==== END HERO ==== */

/* ==== ADMIN INDEX PAGE ==== */
.quick-add-form {
    max-width: 1100px;
}

.quick-add-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.quick-add-main,
.quick-add-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-checks {
    background: #f9fafb;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.quick-preview-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.quick-preview-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 12px;
}

.quick-preview-image-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-preview-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.quick-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 900px) {
    .quick-add-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    margin-top: 60px;
    padding: 30px 20px;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.deal-card-body,
.deal-card-body p,
.deal-card-body h2,
.deal-card-body h3 {
    color: #111827;
}

.deal-card-body p {
    color: #4b5563;
}

.deal-card-body strong {
    color: #111827;
}

.deal-card-body a {
    color: #2563eb;
}

.old-price {
    color: #6b7280;
}

.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 36px 0 12px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: all 0.15s ease;
}

.pagination-link:hover {
    background: rgba(59,130,246,0.16);
    border-color: rgba(96,165,250,0.35);
}

.pagination-link.active {
    background: #2563eb;
    border-color: #2563eb;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #ffffff;
}

.detail-hero-wrap {
    margin-bottom: 42px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.detail-media-panel {
    background: rgba(255,255,255,0.96);
    display: flex;
    flex-direction: column;
}

.detail-image-shell {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
}

.detail-image-shell img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.detail-content-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.98));
    color: #ffffff;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.featured-pill {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}

.neutral-pill {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.78);
}

.detail-title {
    margin: 0 0 18px;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.detail-price-block {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.detail-current-price {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.detail-original-price {
    font-size: 20px;
    text-decoration: line-through;
    color: rgba(255,255,255,0.5);
}

.detail-savings-box {
    display: inline-flex;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #86efac;
    font-weight: 700;
    margin-bottom: 20px;
}

.detail-description-block {
    margin-top: 6px;
    margin-bottom: 24px;
}

.detail-description-block h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.detail-description-block .deal-description {
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.7;
}

.detail-actions {
    margin-top: 8px;
    margin-bottom: 24px;
}

.detail-actions .buy-button {
    margin-top: 0;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.detail-mini-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.detail-mini-stat {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.detail-mini-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.62);
    margin-bottom: 4px;
}

.detail-mini-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

@media (max-width: 920px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-image-shell {
        min-height: 320px;
    }

    .detail-title {
        font-size: 32px;
    }

    .detail-current-price {
        font-size: 32px;
    }
}

/* ===== ADMIN POLISH PASS ===== */
.admin-page-shell {
    padding-top: 34px;
    padding-bottom: 34px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.admin-page-header h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.admin-page-header p {
    margin: 0;
    color: rgba(255,255,255,0.76);
    font-size: 16px;
}

.admin-page-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.glass-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0 24px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.admin-filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-filter-label {
    color: rgba(255,255,255,0.72);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-filter-form select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 14px;
}

.admin-toolbar-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-mini-stat {
    color: rgba(255,255,255,0.76);
    font-size: 14px;
}

.deal-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
}

.polished-deal-table {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.polished-deal-table th {
    color: #6b7280;
    background: #f8fafc;
}

.polished-deal-table td {
    color: #111827;
}

.deal-title-cell {
    min-width: 320px;
}

.deal-title-main {
    color: #111827;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.deal-title-sub {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.3;
}

.deal-price-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-muted {
    color: #9ca3af;
}

.old-price-inline {
    text-decoration: line-through;
}

.admin-actions-clean {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 240px;
}

.toggle-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compact-toggle-group .toggle-label {
    min-width: 62px;
    color: #374151;
    font-size: 13px;
}

.admin-pagination {
    margin-top: 28px;
}

.admin-pagination .pagination-link {
    background: rgba(255,255,255,0.06);
}

.polished-admin-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.polished-admin-card h2,
.fb-builder-section h2 {
    color: #ffffff;
}

.polished-admin-card h2 {
    color: #111827;
}

.admin-stats-polish .fb-stat-card {
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.polished-builder-card {
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.polished-builder-header {
    align-items: flex-start;
    gap: 18px;
}

.builder-title-wrap {
    min-width: 0;
    flex: 1;
}

.builder-card-title {
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 12px;
}

.polished-builder-textarea {
    width: 100%;
    max-width: 100%;
    min-height: 170px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #d1d5db;
    resize: vertical;
}

.builder-inline-actions {
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.fb-comment-card .fb-comment-meta {
    margin: 0;
}

.fb-comment-card .fb-checkbox-label {
    color: #374151;
    font-weight: 700;
}

.fb-comment-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

@media (max-width: 920px) {
    .admin-actions-clean {
        min-width: 0;
    }

    .builder-inline-actions {
        justify-content: flex-start;
    }

    .fb-comment-header,
    .admin-page-header,
    .glass-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.quick-add-form,
.quick-add-form .form-group label,
.quick-add-form .form-group input,
.quick-add-form .form-group select,
.quick-add-form .form-group textarea,
.quick-add-form .helper-text,
.quick-add-form h1,
.quick-add-form p,
.quick-helper-card,
.quick-preview-card,
.quick-checks,
.quick-preview-label {
    color: #111827;
}

.quick-add-form .form-group input,
.quick-add-form .form-group select,
.quick-add-form .form-group textarea {
    background: #ffffff;
    border: 1px solid #d1d5db;
}

.quick-add-form .form-group input::placeholder,
.quick-add-form .form-group textarea::placeholder {
    color: #9ca3af;
}

.quick-checks label,
.quick-preview-label,
.helper-text {
    color: #374151;
}

/* ===== ADMIN LOGIN ===== */
.admin-login-shell {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    width: 100%;
    max-width: 520px;
    padding: 34px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    color: #ffffff;
}

.admin-login-card h1 {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.admin-login-card p {
    margin: 0 0 24px;
    color: rgba(255,255,255,0.76);
    font-size: 16px;
}

.admin-login-form {
    max-width: 100%;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.admin-login-form .form-group label {
    color: #ffffff;
}

.admin-login-form .form-group input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #ffffff;
}

.admin-login-form .form-group input::placeholder {
    color: rgba(255,255,255,0.45);
}

/* ===== FACEBOOK BUILDER SUMMARY + COMPACT GRID ===== */
/* ===== FACEBOOK BUILDER SUMMARY + COMPACT GRID ===== */
.selected-summary-card {
    margin-bottom: 24px;
}

.selected-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.selected-summary-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
}

.selected-summary-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 8px;
}

.selected-summary-value {
    display: block;
    color: #111827;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.selected-summary-text {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.fb-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 30px;
    align-items: stretch;
    margin-bottom: 32px;
}

.fb-card-grid > .fb-comment-card,
.fb-card-grid > .compact-fb-card {
    margin: 0 !important;
}

.fb-card-grid .fb-comment-card {
    margin-bottom: 0 !important;
}

.compact-fb-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 100%;
    padding: 18px;
    border-radius: 20px;
    box-sizing: border-box;
}

.compact-builder-header {
    margin-bottom: 10px;
}

.compact-builder-title {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 62px;
}

.compact-builder-textarea {
    min-height: 190px;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 8px;
    margin-bottom: 10px;
    flex: 1 1 auto;
    width: 100%;
    box-sizing: border-box;
}

.compact-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: auto;
    padding-top: 8px;
}

.compact-card-actions .btn-link {
    margin-right: 0;
    font-size: 13px;
}

.bulk-actions-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 8px;
    clear: both;
}

@media (max-width: 1100px) {
    .fb-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selected-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .fb-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FACEBOOK GENERATED IMAGE PREVIEW ===== */
#mainImagePreviewWrap {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
}

.analytics-highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 24px 0;
}

.analytics-highlight-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #111827;
}

.analytics-highlight-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 8px;
}

.analytics-highlight-meta {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 920px) {
    .analytics-highlight-grid {
        grid-template-columns: 1fr;
    }
}

.app-footer {
    margin-top: 60px;
    padding: 18px 24px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.footer-brand {
    font-weight: 700;
    color: #e5e7eb;
    margin-right: 8px;
}

.footer-copy {
    color: #9ca3af;
}

.footer-center {
    color: #9ca3af;
}

.footer-version {
    font-weight: 600;
    color: #38bdf8;
}

.footer-build {
    opacity: 0.85;
}

.footer-sep {
    margin: 0 6px;
    opacity: 0.5;
}

.footer-right {
    color: #10b981;
    font-weight: 500;
}

/* Mobile stack */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

.ai-btn {
    background: #7c3aed;
}

.ai-btn:hover {
    opacity: 0.9;
}

.compact-card-actions-stacked {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compact-card-builder-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pagination-ellipsis {
    padding: 0 6px;
    color: #9ca3af;
}

.deal-meta-note {
    margin-top: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.deal-posted-date {
    color: #6b7280;
    font-weight: 600;
}

.deal-price-disclaimer {
    color: #9ca3af;
}

.detail-trust-note {
    margin-top: 4px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    line-height: 1.5;
}

.detail-trust-note strong {
    color: #ffffff;
}

.expired-deal-card {
    max-width: 860px;
    margin: 0 auto 36px;
    padding: 32px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    color: #ffffff;
    text-align: center;
}

.expired-deal-card h1 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.expired-deal-card p {
    margin: 0 0 12px;
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.6;
}

.deal-meta-note {
    margin-top: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    line-height: 1.4;
}

.deal-posted-date {
    color: #6b7280 !important;
    font-weight: 600;
}

.deal-price-disclaimer {
    color: #9ca3af !important;
}

.detail-trust-note {
    margin-top: 4px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    line-height: 1.5;
}

.detail-trust-note strong {
    color: #ffffff;
}

.expired-deal-card {
    max-width: 860px;
    margin: 0 auto 36px;
    padding: 32px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    color: #ffffff;
    text-align: center;
}

.expired-deal-card h1 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.expired-deal-card p {
    margin: 0 0 12px;
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.6;
}

.pagination-ellipsis {
    padding: 0 6px;
    color: #9ca3af;
}

.image-builder-layout {
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    gap: 24px;
    align-items: start;
}

.image-builder-form .form-group {
    margin-bottom: 16px;
}

.color-picker {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.background-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.background-thumb-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    transition: 0.2s ease;
}

.background-thumb-card.active {
    border-color: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.background-thumb-card input {
    display: none;
}

.background-thumb-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
}

.background-thumb-card span {
    font-size: 11px;
    color: #374151;
    word-break: break-word;
}

.image-builder-preview-img {
    width: 100%;
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid #d1d5db;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.selected-deals-preview {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.selected-deals-preview h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #111827;
}

.selected-deals-preview ul {
    margin: 0;
    padding-left: 18px;
    color: #374151;
}

@media (max-width: 980px) {
    .image-builder-layout {
        grid-template-columns: 1fr;
    }
}

.image-builder-controls label,
.image-builder-form label,
.image-builder-controls .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151 !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
}

.image-builder-controls .form-group input[type="text"],
.image-builder-controls .form-group input[type="color"],
.image-builder-controls .form-group input[type="file"] {
    color: #111827;
}

.image-builder-controls h2,
.image-builder-preview h2 {
    color: #111827;
    margin-top: 0;
    margin-bottom: 18px;
}

.image-builder-controls {
    padding: 28px;
}

.image-builder-preview {
    padding: 28px;
}

.image-builder-preview p,
.image-builder-preview li,
.selected-deals-preview {
    color: #374151;
}

.selected-deals-preview h3 {
    color: #111827;
    font-weight: 800;
}

.image-builder-form .form-group {
    margin-bottom: 18px;
}