/* ═══════════════════════════════════════════════════════════════
   IGDM Pro — Global Styles
   Light minimal theme, Zorcha-inspired, elegant & clean
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-primary: #EEF2F7;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F8FAFC;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --border-color: #E2E8F0;
    --border-focus: rgba(124, 58, 237, 0.4);

    /* Text */
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* Accent gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed, #6366f1);
    --gradient-accent: linear-gradient(135deg, #a855f7, #7c3aed);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);

    /* Accent colors */
    --color-primary: #7c3aed;
    --color-primary-hover: #6d28d9;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    /* Spacing */
    --sidebar-width: 250px;
    --content-padding: 28px;
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --border-radius-xs: 8px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Shadows — subtle & soft */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.08);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-hover);
}

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(124, 58, 237, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}

.nav-item.active svg {
    stroke: var(--color-primary);
}

/* ─── Account Switcher ──────────────────────────────────────── */
.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.account-switcher {
    position: relative;
}

.current-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.current-account:hover {
    background: var(--bg-card-hover);
}

.account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.account-info {
    flex: 1;
    min-width: 0;
}

.account-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-email {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.account-switcher.open .chevron {
    transform: rotate(180deg);
}

.account-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    z-index: 200;
    max-height: 60vh;
    overflow-y: auto;
}

.account-switcher.open .account-menu {
    display: block;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--border-radius-xs);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.menu-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.menu-item.active {
    background: rgba(139, 92, 246, 0.12);
    color: var(--color-primary);
}

.menu-item-danger:hover {
    color: var(--color-danger);
}

.menu-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: white;
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

/* ─── Main Content ──────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

.content-area {
    padding: var(--content-padding);
    max-width: 100%;
}

/* ─── Mobile Header ─────────────────────────────────────────── */
.mobile-header {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
}

.mobile-brand {
    font-weight: 700;
    color: var(--text-primary);
}

/* ─── Toast Messages ────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-container-auth {
    top: 24px;
    right: 24px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    animation: toastIn 0.3s ease;
    border: 1px solid var(--border-color);
    max-width: 400px;
    box-shadow: var(--shadow-md);
    background: #FFFFFF;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.toast-error {
    background: #fef2f2;
    border-color: #fecaca;
}

.toast-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.toast-info {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
}

/* ─── Page Headers ──────────────────────────────────────────── */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

/* ─── Stats Grid ────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.stat-card.purple::before {
    background: var(--gradient-primary);
}

.stat-card.pink::before {
    background: var(--gradient-accent);
}

.stat-card.green::before {
    background: var(--gradient-success);
}

.stat-card.orange::before {
    background: var(--gradient-warning);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    text-decoration: none;
}

.btn-primary {
    background: #1a1a2e;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
    background: #2d2d44;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    opacity: 0.9;
    color: white;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
    color: white;
}

.btn-outline {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: #d1d5db;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ─── Forms ─────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 11px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xs);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    font-size: 0.8rem;
    color: var(--color-danger);
    margin-top: 6px;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.char-counter.warning {
    color: var(--color-warning);
}

.char-counter.danger {
    color: var(--color-danger);
}

/* ─── Auth Pages ────────────────────────────────────────────── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(168, 85, 247, 0.04), transparent);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 40px;
}

.auth-brand .brand-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

.auth-brand h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}

.auth-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.auth-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ─── Tables ────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

tr:hover td {
    background: var(--bg-card);
}

/* ─── Badges ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.badge-inactive {
    background: #f1f5f9;
    color: var(--text-muted);
}

.badge-paused {
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-info);
}

/* ─── Alert / Warning Banner ────────────────────────────────── */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

/* ─── Connect Instagram Page ────────────────────────────────── */
.connect-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.connect-container {
    text-align: center;
    max-width: 480px;
}

.connect-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}

.connect-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.connect-container p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.permissions-list {
    text-align: left;
    margin-bottom: 32px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.permission-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-success);
    font-size: 0.7rem;
}

/* ─── Automation Cards ──────────────────────────────────────── */
.automation-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.automation-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.automation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.automation-name {
    font-weight: 600;
    font-size: 1rem;
}

.automation-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.automation-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.automation-stat {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.automation-stat strong {
    color: var(--text-primary);
    font-weight: 700;
}

.automation-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.automation-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.automation-thumb-placeholder {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ─── Dry Run ───────────────────────────────────────────────── */
.dry-run-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.dry-run-match {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.dry-run-no-match {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.dry-run-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.dry-run-match .dry-run-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
}

.dry-run-no-match .dry-run-icon {
    background: #f1f5f9;
    color: var(--text-muted);
}

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ─── Detail Key-Value ──────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
}

/* ─── Connected Accounts List ───────────────────────────────── */
.account-list {
    margin-top: 24px;
}

.account-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
    transition: all 0.2s;
}

.account-item:hover {
    background: var(--bg-card-hover);
}

.account-item .account-avatar {
    width: 42px;
    height: 42px;
    font-size: 1rem;
}

.account-item-info {
    flex: 1;
}

.account-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.account-item-id {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Filters ───────────────────────────────────────────────── */
.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filters-bar .form-input {
    width: auto;
    min-width: 160px;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-header {
        display: flex;
    }

    .content-area {
        padding: 20px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filters-bar .form-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px;
    }
}

/* ─── Utility ───────────────────────────────────────────────── */
.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 16px;
}

.gap-1 {
    gap: 8px;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.85rem;
}

.font-bold {
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   Modal / Popup
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 620px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.25s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 0 28px 28px;
}

.template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.template-option {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.template-option:hover {
    border-color: var(--color-success);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    color: inherit;
}

.template-option:nth-child(3) {
    grid-column: 1 / -1;
}

.template-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.coming-soon-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-warning);
}

.template-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-success);
    margin-bottom: 10px;
}

.template-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    display: inline-block;
}

.template-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.template-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   Wizard Create Page
   ═══════════════════════════════════════════════════════════════ */
.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.wizard-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wizard-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wizard-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.wizard-back:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.wizard-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.wizard-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

/* LEFT column: phone preview stays sticky */
.wizard-preview {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    overflow: visible;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

/* RIGHT column */
.wizard-steps-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.wizard-steps-column .premium-section {
    max-width: 100%;
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Phone Mockup — Realistic iPhone-style device (dual views)
   ═══════════════════════════════════════════════════════════════ */
.phone-mockup {
    width: 300px;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 2px #1a1a1a, 0 0 0 6px #2a2a2a;
    position: relative;
}

/* Notch */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 26px;
    background: #000;
    border-radius: 0 0 18px 18px;
    z-index: 20;
}

/* Phone inner scroll area */
.phone-mockup-inner {
    max-height: 680px;
    overflow-y: auto;
    background: #000;
    scrollbar-width: none;
}
.phone-mockup-inner::-webkit-scrollbar {
    display: none;
}

/* Phone view containers */
.phone-view {
    background: #000;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ── Post View Header ── */
.phone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 34px 14px 8px;
    background: #000;
    position: relative;
}
.phone-back {
    color: #fff;
    font-size: 1.1rem;
}
.phone-title-bold {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    text-align: center;
}
.phone-notch {
    width: 20px;
}

/* Account bar */
.phone-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
}
.phone-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
}
.phone-username {
    font-size: 0.78rem;
    font-weight: 600;
    flex: 1;
    color: #fff;
}
.phone-dots {
    color: #fff;
    font-size: 1.1rem;
}

/* Post image */
.phone-post {
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    position: relative;
    overflow: hidden;
}
.phone-post img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.phone-post-placeholder {
    text-align: center;
    padding: 30px;
    color: #666;
}
.phone-post-text {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 12px;
    color: #999;
}

/* ── Emoji Reactions Bar ── */
.phone-emoji-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    background: #000;
    font-size: 1.1rem;
}

/* ── Add a Comment ── */
.phone-add-comment {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #222;
}
.phone-avatar-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #333;
    overflow: hidden;
    flex-shrink: 0;
}
.phone-comment-placeholder {
    font-size: 0.72rem;
    color: #666;
}

/* ── Comments Section ── */
.phone-comments-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26,26,26,0.97);
    border-radius: 16px 16px 0 0;
    padding: 12px 14px;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.phone-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    margin-bottom: 12px;
}
.phone-comments-header span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}
.phone-comments-header svg {
    color: #fff;
}

/* Comment items */
.phone-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
}
.phone-comment-item.reply-comment {
    padding-left: 32px;
}
.comment-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #444;
    flex-shrink: 0;
}
.comment-avatar-owner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    flex-shrink: 0;
    overflow: hidden;
}
.comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.comment-username {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}
.comment-text {
    font-size: 0.72rem;
    color: #ddd;
    line-height: 1.4;
}
.comment-reply-link {
    font-size: 0.65rem;
    color: #888;
    font-weight: 600;
}
.comment-heart {
    margin-top: 4px;
    color: #888;
    flex-shrink: 0;
}

/* ── DM View ── */
.phone-dm-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 34px 14px 10px;
    border-bottom: 1px solid #222;
    background: #0a0a0a;
}
.phone-dm-header svg {
    color: #fff;
}
.phone-dm-header .dm-header-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}
.phone-dm-header .dm-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.phone-dm-header span {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
}
.phone-dm-header .dm-header-icons {
    margin-left: auto;
    display: flex;
    gap: 12px;
    color: #fff;
}
.phone-dm-body {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    overflow: hidden;
    background: #000;
}

/* DM message row (avatar + card) */
.dm-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin-bottom: 2px;
}
.dm-avatar-sm {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #444;
    align-self: flex-end;
}
.dm-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dm-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #833ab4, #fd1d1d);
}

/* The card: text + buttons all in one dark rounded box (exactly like IG) */
.dm-bubble-group {
    display: flex;
    flex-direction: column;
    background: #262626;
    border-radius: 16px 16px 16px 4px;
    overflow: hidden;
    max-width: 80%;
    min-width: 100px;
}

/* Text inside the card — transparent background */
.dm-bubble-received {
    color: #fff;
    padding: 7px 10px 5px;
    font-size: 0.56rem;
    word-wrap: break-word;
    line-height: 1.4;
    white-space: pre-line;
    background: transparent;
}

/* Sent bubble (viewer reply) — compact, right-aligned, purple */
.dm-bubble-sent {
    align-self: flex-end;
    background: linear-gradient(135deg, #5b51d8 0%, #833ab4 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 0.56rem;
    max-width: 50%;
    word-wrap: break-word;
    line-height: 1.35;
    margin-left: auto;
}

/* Buttons inside the card: divider + text row (exact IG style) */
.dm-inline-btn {
    color: #fff;
    padding: 5px 10px;
    font-size: 0.54rem;
    font-weight: 500;
    cursor: default;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,0.15);
    background: transparent;
}
.dm-inline-btn--green {
    color: #2ecc71;
}

/* Legacy hidden */
.dm-quick-reply { display: none; }
.dm-action-btn  { display: none; }
.dm-link-bubble {
    align-self: flex-start;
    background: #262626;
    color: #8e8e8e;
    padding: 8px 12px;
    border-radius: 18px;
    font-size: 0.63rem;
    cursor: default;
}

/* DM input bar */
.phone-dm-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #222;
    background: #000;
}
.phone-dm-input-bar .dm-input-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    flex-shrink: 0;
}
.phone-dm-input-bar .dm-input-field {
    flex: 1;
    background: transparent;
    border: 1px solid #363636;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.72rem;
    color: #666;
}
.phone-dm-input-bar .dm-input-icons {
    display: flex;
    gap: 8px;
    color: #fff;
}

/* Phone bottom home indicator */
.phone-home-indicator {
    padding: 8px 0 6px;
    display: flex;
    justify-content: center;
    background: #000;
}
.phone-home-indicator div {
    width: 120px;
    height: 4px;
    background: #333;
    border-radius: 4px;
}

/* Hidden helper */
.preview-hidden {
    display: none !important;
}

/* ═══ Horizontal Reel Slider ═══ */
.reels-inline-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.reels-inline-grid::-webkit-scrollbar {
    display: none;
}
.reels-inline-grid .reel-thumb {
    flex: 0 0 120px;
    height: 160px;
    min-width: 120px;
}

/* Reply Variant Rows */
.public-reply-section {
    padding: 0 16px 12px;
}

/* DM Link Input */
.dm-link-section {
    margin-top: 8px;
}

.dm-link-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.reply-variant-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 10px;
    transition: border-color 0.2s;
}

.reply-variant-row:focus-within {
    border-color: var(--primary);
}

.reply-variant-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.reply-variant-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 6px 4px !important;
    font-size: 0.85rem;
    outline: none;
}

.reply-variant-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.reply-variant-delete:hover {
    opacity: 1;
}

/* Wizard Steps / Accordion */
.wizard-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wizard-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.wizard-step:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 700;
}

.step-chevron {
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--text-muted);
}

.wizard-step.active .step-chevron {
    transform: rotate(180deg);
}

.step-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.wizard-step.active .step-body {
    max-height: 2000px;
    padding: 0 20px 20px;
    overflow-x: hidden;
    overflow-y: visible;
}

/* Radio Option */
.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 10px;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

/* Post Thumbnails */
.post-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    margin-top: 8px;
}

.post-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--bg-card-hover);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    padding: 4px;
}

.post-thumb:hover {
    border-color: var(--color-primary);
    background: rgba(139, 92, 246, 0.08);
}

.post-thumb.selected {
    border-color: var(--color-success);
    border-style: solid;
    background: rgba(16, 185, 129, 0.08);
}

.thumb-type {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
}

.no-posts-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 8px 0;
}

/* Tag/Chip Input */
.tag-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 2px solid var(--color-success);
    border-radius: 10px;
}

.tag-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-chip button {
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0 2px;
}

.tag-input {
    flex: 1;
    min-width: 140px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.85rem;
    outline: none;
}

.tag-input::placeholder {
    color: var(--text-muted);
}

.tag-add-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-success);
    color: white;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tag-add-btn:hover {
    transform: scale(1.05);
}

/* DM Composer */
.dm-composer {
    border: 2px solid var(--color-success);
    border-radius: 10px;
    padding: 14px;
    background: var(--bg-card);
}

.dm-char-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.dm-char-counter::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: inline-block;
}

.dm-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.85rem;
    padding: 12px;
    resize: vertical;
    outline: none;
}

.dm-textarea:focus {
    border-color: var(--border-focus);
}

.dm-textarea::placeholder {
    color: var(--text-muted);
}

.dm-add-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--color-success);
    background: transparent;
    color: var(--color-success);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.dm-add-link:hover {
    background: rgba(16, 185, 129, 0.08);
}

/* Premium Toggles — Advanced Features */
.premium-section {
    margin-top: 12px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premium-card {
    border: 1px solid rgba(124, 77, 255, 0.12);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.07) 0%, rgba(99, 102, 241, 0.05) 100%);
    overflow: hidden;
    transition: all 0.2s;
}

.premium-card:hover {
    border-color: rgba(124, 77, 255, 0.22);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.09) 0%, rgba(99, 102, 241, 0.07) 100%);
}

.premium-card.expanded {
    border-color: rgba(124, 77, 255, 0.25);
}

.premium-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.premium-label {
    font-size: 0.92rem;
    font-weight: 600;
}

.crown-icon {
    font-size: 0.9rem;
}

.premium-divider {
    display: none;
}

.premium-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(124, 77, 255, 0.2);
    background: rgba(124, 77, 255, 0.08);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.premium-edit-btn:hover {
    background: rgba(124, 77, 255, 0.15);
    border-color: rgba(124, 77, 255, 0.35);
    transform: scale(1.05);
}

.premium-edit-btn .edit-icon {
    transition: opacity 0.25s ease, transform 0.3s ease;
    opacity: 1;
    transform: rotate(0deg);
}

.premium-edit-btn .close-icon {
    position: absolute;
    transition: opacity 0.25s ease, transform 0.3s ease;
    opacity: 0;
    transform: rotate(-90deg);
}

.premium-card.expanded .premium-edit-btn .edit-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.premium-card.expanded .premium-edit-btn .close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.premium-card.expanded .premium-edit-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.premium-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
    opacity: 0;
}

.premium-card.expanded .premium-content {
    max-height: 800px;
    padding: 0 20px 16px;
    opacity: 1;
}

.premium-advanced {
    padding: 18px 0 4px;
}

.premium-advanced h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.premium-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #E2E8F0;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #94a3b8;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle input:checked+.toggle-slider {
    background: var(--color-success);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(20px);
    background: white;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-layout {
        grid-template-columns: 1fr;
    }

    .wizard-preview {
        display: none;
    }

    .phone-mockup {
        width: 280px;
    }

    .template-grid {
        grid-template-columns: 1fr;
    }

    .wizard-header {
        flex-wrap: wrap;
        gap: 12px;
    }
}

.reel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.reel-grid::-webkit-scrollbar {
    width: 6px;
}

.reel-grid::-webkit-scrollbar-track {
    background: transparent;
}

.reel-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.reel-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   Reel Thumbnail Card
   ═══════════════════════════════════════════════════════════════ */
.reel-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg-card-hover);
}

.reel-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reel-thumb:hover {
    border-color: var(--color-primary);
}

.reel-thumb.selected {
    border-color: var(--color-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.reel-thumb-type {
    position: absolute;
    bottom: 6px;
    left: 6px;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.reel-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   Reels Inline Grid (Create Page — Step 1)
   Grid controls the row height, reel-thumb fills it.
   ═══════════════════════════════════════════════════════════════ */
.reels-inline-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 8px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.reels-inline-grid::-webkit-scrollbar {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   Reels Selection Modal
   ═══════════════════════════════════════════════════════════════ */
.post-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.post-modal-overlay.active {
    display: flex;
}

.post-modal {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    animation: modalIn 0.3s ease;
    overflow: hidden;
}

.post-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.post-modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.modal-close:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.post-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
    gap: 10px;
    align-content: start;
}

.post-modal-body::-webkit-scrollbar {
    width: 4px;
}

.post-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.post-modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}

.post-modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* Loading spinner */
.reels-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.reels-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: reelsSpin 0.7s linear infinite;
}

@keyframes reelsSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .post-modal-body {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }

    .reels-inline-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
    }

    .post-modal {
        max-height: 92vh;
    }
}

/* ─── Lazy Image Loading ────────────────────────────────────── */
.lazy-img {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lazy-img.loaded {
    opacity: 1;
}

/* ─── Skeleton Shimmer ──────────────────────────────────────── */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card-hover) 25%,
        #e2e8f0 50%,
        var(--bg-card-hover) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--border-radius-xs);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD — Home Page Cards & Layout
   ═══════════════════════════════════════════════════════════════ */

/* Top Bar */
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 0;
}
.dash-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.dash-topbar-left svg {
    color: var(--text-muted);
}
.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.dash-topbar-right:hover {
    color: var(--purple);
}

/* Two-column grid */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}
.dash-col-left,
.dash-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Generic dashboard card */
.dash-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}
.dash-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Card title with icon */
.dash-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.dash-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.dash-icon-circle.purple {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

/* ── Get Setup Checklist ── */
.setup-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.setup-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.setup-item.done {
    color: var(--text-muted);
}
.setup-item.done span:last-child {
    text-decoration: line-through;
    opacity: 0.6;
}
.setup-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
}
.setup-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    margin-top: 1px;
}
.setup-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
}
.setup-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #111;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    margin: 6px 0 6px 34px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}
.setup-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* ── Plan Card ── */
.plan-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f3ff 100%);
    border: 1px solid rgba(124,58,237,0.08);
}
.plan-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.plan-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ede9fe, #c4b5fd);
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan-name {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.plan-name strong {
    font-weight: 700;
}
.plan-renew {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.plan-credits {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.05);
}
.plan-credits-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}
.plan-buy {
    font-size: 0.78rem;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}
.plan-buy:hover {
    text-decoration: underline;
}
.plan-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}
.plan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 8px;
    transition: width 0.8s ease;
}
.plan-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.plan-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 16px;
}
.plan-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.plan-feature strong {
    margin-left: auto;
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.78rem;
}
.plan-manage {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    transition: color 0.2s;
}
.plan-manage:hover {
    color: #7c3aed;
}

/* ── Conversion Funnel ── */
.funnel-card {
    background: linear-gradient(135deg, #faf5ff 0%, #f0e7fe 50%, #e8f5e9 100%);
    border: 1px solid rgba(124,58,237,0.06);
}
.funnel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.funnel-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.funnel-title svg {
    color: var(--text-muted);
}
.funnel-period {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 500;
}
.funnel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.funnel-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.funnel-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.funnel-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
}
.funnel-bar {
    width: 100%;
    height: 18px;
    border-radius: 12px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}
.funnel-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease;
}
.funnel-bar-fill.messages {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    z-index: 1;
}
.funnel-bar-fill.seen {
    background: linear-gradient(90deg, #06b6d4, #67e8f9);
    z-index: 2;
}
.funnel-bar-fill.pressed {
    background: linear-gradient(90deg, #10b981, #6ee7b7);
    z-index: 3;
}

/* ── Analytics Card ── */
.analytics-card {
    border: 1px solid rgba(0,0,0,0.05);
}
.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.analytics-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.analytics-title svg {
    color: var(--text-muted);
}
.analytics-section {
    padding: 4px 0;
}
.analytics-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.analytics-metric-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.analytics-metric-label svg {
    color: var(--text-muted);
}
.analytics-big-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.analytics-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.analytics-divider {
    height: 1px;
    background: rgba(0,0,0,0.06);
    margin: 16px 0;
}

/* Mini line chart area (followers) */
.followers-chart {
    width: 160px;
    height: 70px;
    position: relative;
}
.mini-line-area {
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, rgba(16,185,129,0.2) 0%, rgba(16,185,129,0.02) 100%);
    border-radius: 0 0 8px 8px;
    position: relative;
    overflow: hidden;
}
.mini-line-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 2px;
    clip-path: polygon(0 80%, 15% 40%, 30% 60%, 45% 20%, 60% 50%, 75% 10%, 90% 30%, 100% 0%, 100% 100%, 0% 100%);
    height: 100%;
}
.mini-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Bar chart (messages) */
.analytics-bar-chart {
    width: 160px;
}
.bar-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 55px;
}
.bar {
    flex: 1;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #10b981, #059669);
    min-width: 12px;
    transition: height 0.6s ease;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCTS & LINKTREE — Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Nav Divider ─────────────────────────────────────────────── */
.nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 16px;
}

/* ─── Back Link ───────────────────────────────────────────────── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--text-primary);
}

/* ─── Products Mini Dashboard ────────────────────────────────── */
.dp-dash {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 960px) { .dp-dash { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .dp-dash { grid-template-columns: 1fr; } }

.dp-stat-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}
.dp-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.dp-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dp-stat-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.dp-stat-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.dp-stat-purple { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.dp-stat-amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.dp-stat-info { flex: 1; min-width: 0; }
.dp-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dp-stat-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 2px;
}
.dp-stat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
}
.dp-badge-blue { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.dp-badge-amber { background: rgba(245, 158, 11, 0.08); color: #f59e0b; }

/* ─── Products Grid ──────────────────────────────────────────── */
.dp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.dp-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.dp-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.dp-card-off { opacity: 0.55; }
.dp-card-off:hover { opacity: 0.8; }

/* Cover */
.dp-card-cover {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f5, #e8e8ee);
}
.dp-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.dp-card:hover .dp-card-cover img { transform: scale(1.03); }
.dp-card-cover-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    color: var(--text-muted);
}
.dp-ext-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(0,0,0,0.06);
    padding: 3px 10px;
    border-radius: 6px;
}
.dp-off-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
}
.dp-price-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.dp-price-free { color: var(--color-success); }

/* Body */
.dp-card-body {
    padding: 14px 16px 10px;
    flex: 1;
}
.dp-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dp-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}
.dp-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer actions */
.dp-card-footer {
    display: flex;
    border-top: 1px solid var(--border-color);
}
.dp-foot-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.dp-foot-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}
.dp-foot-btn + .dp-foot-btn { border-left: 1px solid var(--border-color); }
.dp-foot-danger:hover {
    background: rgba(239, 68, 68, 0.06);
    color: var(--color-danger);
}

/* Empty state */
.dp-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.dp-empty-illustration { margin-bottom: 16px; }
.dp-empty h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.dp-empty p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ─── File Upload Area ───────────────────────────────────────── */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--color-primary);
    background: rgba(124, 58, 237, 0.03);
}
.file-upload-area.file-upload-sm {
    padding: 16px;
}
.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.file-upload-text {
    font-size: 0.9rem;
    font-weight: 500;
}
.file-upload-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.file-name-display {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
}

/* ─── Empty State ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.empty-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 380px;
    margin: 0 auto;
}

/* ─── Linktree — Premium Layout ──────────────────────────────── */
.lt-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.lt-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 960px) {
    .lt-layout { grid-template-columns: 1fr; }
    .lt-preview-col { order: -1; }
}

/* ─── Cards ──────────────────────────────────────────────────── */
.lt-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.lt-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}
.lt-card-head h3 {
    font-size: 0.92rem;
    font-weight: 700;
}
.lt-count {
    background: var(--bg-primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ─── Input Style ────────────────────────────────────────────── */
.lt-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1.5px solid transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s ease;
}
.lt-input:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}
.lt-input::placeholder { color: var(--text-muted); }

/* ─── Add Link Bar ───────────────────────────────────────────── */
.lt-card-add {
    border: 1.5px dashed rgba(124, 58, 237, 0.25);
    background: rgba(124, 58, 237, 0.02);
}
.lt-add-form { padding: 14px 16px; }
.lt-add-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lt-add-icon-wrap { flex-shrink: 0; }
.lt-icon-select {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    font-size: 1.2rem;
    text-align: center;
    cursor: pointer;
    appearance: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lt-add-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lt-input-url { font-size: 0.82rem; }
.lt-add-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}
.lt-add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

/* ─── Links List ─────────────────────────────────────────────── */
.lt-links { padding: 0 8px 8px; }
.lt-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    transition: all 0.15s ease;
    margin-bottom: 2px;
}
.lt-link:hover {
    background: var(--bg-card-hover);
}
.lt-link-off { opacity: 0.45; }
.lt-link-drag {
    cursor: grab;
    flex-shrink: 0;
    padding: 2px;
}
.lt-link-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.lt-link-body {
    flex: 1;
    min-width: 0;
}
.lt-link-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lt-link-url {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lt-link-stats {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.76rem;
    color: var(--text-muted);
    flex-shrink: 0;
    background: var(--bg-primary);
    padding: 3px 8px;
    border-radius: 8px;
}
.lt-link-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}
.lt-link:hover .lt-link-actions { opacity: 1; }
.lt-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.lt-action-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}
.lt-action-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
}

/* ─── Empty Links ────────────────────────────────────────────── */
.lt-empty {
    padding: 36px 20px;
    text-align: center;
}
.lt-empty-icon {
    color: var(--text-muted);
    opacity: 0.35;
    margin-bottom: 10px;
}
.lt-empty p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Collapsible Details ────────────────────────────────────── */
.lt-details { border: 1px solid var(--border-color); }
.lt-summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.lt-summary::-webkit-details-marker { display: none; }
.lt-chevron { transition: transform 0.25s ease; flex-shrink: 0; color: var(--text-muted); }
.lt-details[open] .lt-chevron { transform: rotate(180deg); }
.lt-settings-form { padding: 0 20px 20px; }

/* ─── Profile Editor ─────────────────────────────────────────── */
.lt-profile-edit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.lt-avatar-upload {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lt-avatar-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lt-avatar-letter {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}
.lt-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}
.lt-avatar-upload:hover .lt-avatar-overlay { opacity: 1; }
.lt-profile-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ─── Slug input ─────────────────────────────────────────────── */
.lt-field-row { margin-bottom: 16px; }
.lt-field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.lt-slug-input {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
}
.lt-slug-input:focus-within {
    border-color: var(--color-primary);
    background: #fff;
}
.lt-slug-prefix {
    padding: 10px 2px 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
.lt-slug-input .lt-input {
    border: none;
    background: transparent;
    padding-left: 0;
    border-radius: 0;
}
.lt-slug-input .lt-input:focus {
    box-shadow: none;
    border-color: transparent;
}

/* ─── Theme Picker ───────────────────────────────────────────── */
.lt-theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.lt-theme-grid-8 {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.lt-theme-option {
    cursor: pointer;
    text-align: center;
    padding: 8px 4px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.lt-theme-option:hover { background: var(--bg-primary); }
.lt-theme-active {
    border-color: var(--color-primary);
    background: rgba(124, 58, 237, 0.04);
}
.lt-theme-swatch {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
}
.lt-swatch-minimal { background: #f8f9fa; }
.lt-swatch-dark { background: #0f0f1a; }
.lt-swatch-gradient { background: linear-gradient(135deg, #667eea, #764ba2); border-color: transparent; }
.lt-swatch-neon { background: #0a0a0a; border: 1px solid #7c3aed; box-shadow: 0 0 6px rgba(124,58,237,0.3); }
/* NEW animated swatches */
.lt-swatch-aurora {
    background: #0a0a1a;
    border-color: transparent;
    position: relative;
    overflow: hidden;
}
.lt-swatch-aurora::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(72,209,204,0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(123,104,238,0.4) 0%, transparent 60%);
    animation: auroraSwatchShift 4s ease-in-out infinite alternate;
    filter: blur(6px);
}
@keyframes auroraSwatchShift {
    0% { transform: translate(0,0); filter: blur(6px) hue-rotate(0deg); }
    100% { transform: translate(4px,-3px); filter: blur(8px) hue-rotate(40deg); }
}
.lt-swatch-glass {
    background: #0d0d1a;
    border-color: transparent;
    position: relative;
    overflow: hidden;
}
.lt-swatch-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 50%, rgba(139,92,246,0.5) 0%, transparent 55%),
        radial-gradient(circle at 75% 50%, rgba(236,72,153,0.4) 0%, transparent 55%);
    filter: blur(8px);
    animation: glassSwatchFloat 3s ease-in-out infinite alternate;
}
@keyframes glassSwatchFloat {
    0% { transform: scale(1); }
    100% { transform: scale(1.15) translate(-3px, 2px); }
}
.lt-swatch-sunset {
    background: linear-gradient(-45deg, #ff9a9e, #fecfef, #fad0c4, #fbc2eb);
    background-size: 300% 300%;
    animation: sunsetSwatchShift 4s ease infinite;
    border-color: transparent;
}
@keyframes sunsetSwatchShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.lt-swatch-cyber {
    background: #0a0a0f;
    border: 1px solid rgba(0,255,65,0.3);
    box-shadow: 0 0 6px rgba(0,255,65,0.15);
    position: relative;
    overflow: hidden;
}
.lt-swatch-cyber::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,255,65,0.06) 2px, rgba(0,255,65,0.06) 4px
    );
    animation: cyberSwatchScan 3s linear infinite;
}
@keyframes cyberSwatchScan {
    0% { background-position: 0 0; }
    100% { background-position: 0 40px; }
}
.lt-theme-option span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
    display: block;
}

/* ─── Button Style Picker ────────────────────────────────────── */
.lt-btn-style-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.lt-btn-style-option {
    cursor: pointer;
    text-align: center;
    padding: 8px 4px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s;
}
.lt-btn-style-option:hover { background: var(--bg-primary); }
.lt-btn-style-active {
    border-color: var(--color-primary);
    background: rgba(124, 58, 237, 0.04);
}
.lt-btn-preview {
    width: 100%;
    height: 16px;
    background: var(--border-color);
    margin-bottom: 4px;
}
.lt-btn-preview-rounded { border-radius: 6px; }
.lt-btn-preview-pill { border-radius: 50px; }
.lt-btn-preview-outline {
    border-radius: 6px;
    background: transparent;
    border: 2px solid var(--border-color);
}
.lt-btn-preview-shadow {
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.lt-btn-preview-glass {
    border-radius: 8px;
    background: rgba(124,58,237,0.1);
    backdrop-filter: blur(4px);
}
.lt-btn-style-option span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ═══ Phone Frame Preview ════════════════════════════════════── */
.lt-preview-col {
    position: sticky;
    top: 28px;
}
.lt-phone-frame {
    background: #1a1a2e;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}
.lt-phone-notch {
    width: 100px;
    height: 5px;
    background: #333;
    border-radius: 10px;
    margin: 4px auto 8px;
}
.lt-phone-screen {
    border-radius: 26px;
    padding: 28px 16px 20px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

/* ─── Screen themes ──────────────────────────────────────────── */
.lt-screen-minimal { background: #f8f9fa; color: #1a1a2e; }
.lt-screen-dark { background: #0f0f1a; color: #fff; }
.lt-screen-gradient { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.lt-screen-neon { background: #0a0a0a; color: #fff; }
/* NEW screen themes */
.lt-screen-aurora {
    background: #0a0a1a;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.lt-screen-aurora::before {
    content: '';
    position: absolute;
    inset: -20px;
    background:
        radial-gradient(ellipse at 25% 45%, rgba(72,209,204,0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 55%, rgba(123,104,238,0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 85%, rgba(50,205,50,0.2) 0%, transparent 50%);
    filter: blur(12px);
    animation: auroraPreview 8s ease-in-out infinite alternate;
    z-index: 0;
}
.lt-screen-aurora > * { position: relative; z-index: 1; }
@keyframes auroraPreview {
    0% { transform: translate(0,0); filter: blur(12px) hue-rotate(0deg); }
    100% { transform: translate(8px,-5px); filter: blur(15px) hue-rotate(40deg); }
}
.lt-screen-glass {
    background: #0d0d1a;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.lt-screen-glass::before {
    content: '';
    position: absolute;
    inset: -10px;
    background:
        radial-gradient(circle at 30% 40%, rgba(139,92,246,0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 65%, rgba(236,72,153,0.35) 0%, transparent 50%);
    filter: blur(20px);
    animation: glassPreview 6s ease-in-out infinite alternate;
    z-index: 0;
}
.lt-screen-glass > * { position: relative; z-index: 1; }
@keyframes glassPreview {
    0% { transform: scale(1); }
    100% { transform: scale(1.1) translate(-5px, 5px); }
}
.lt-screen-glass .lt-phone-link {
    background: rgba(255,255,255,0.06) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
.lt-screen-sunset {
    background: linear-gradient(-45deg, #ff9a9e, #fecfef, #fad0c4, #fbc2eb);
    background-size: 300% 300%;
    animation: sunsetPreview 8s ease infinite;
    color: #2d1b3d;
}
@keyframes sunsetPreview {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.lt-screen-sunset .lt-phone-link {
    background: rgba(255,255,255,0.5) !important;
    border: 1px solid rgba(255,255,255,0.6) !important;
    color: #2d1b3d !important;
}
.lt-screen-cyber {
    background: #0a0a0f;
    color: #e0e0ff;
    position: relative;
    overflow: hidden;
}
.lt-screen-cyber::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(0,255,65,0.02) 2px, rgba(0,255,65,0.02) 4px
    );
    animation: cyberPreview 5s linear infinite;
    z-index: 0;
}
.lt-screen-cyber > * { position: relative; z-index: 1; }
@keyframes cyberPreview {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}
.lt-screen-cyber .lt-phone-link {
    background: rgba(0,255,65,0.04) !important;
    border: 1px solid rgba(0,255,65,0.25) !important;
    color: #e0e0ff !important;
}
.lt-screen-aurora .lt-phone-link {
    background: rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.lt-phone-profile { margin-bottom: 20px; }
.lt-phone-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2.5px solid rgba(255,255,255,0.2);
}
.lt-phone-avatar-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    margin: 0 auto 10px;
}
.lt-phone-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.lt-phone-bio { font-size: 0.72rem; opacity: 0.65; line-height: 1.4; }

.lt-phone-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.lt-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.lt-phone-link-icon { font-size: 0.9rem; }

/* ─── Button Shape Variants for Phone Preview ─── */
.lt-phone-link.btn-rounded { border-radius: 12px; }
.lt-phone-link.btn-pill { border-radius: 50px; }
.lt-phone-link.btn-outline {
    background: transparent !important;
    border-width: 1.5px !important;
}
.lt-phone-link.btn-soft-shadow {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
}
.lt-phone-link.btn-glass {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

/* Per-theme link buttons */
.lt-screen-minimal .lt-phone-link {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #1a1a2e;
}
.lt-screen-minimal .lt-phone-link:hover {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
    transform: translateY(-1px);
}
.lt-screen-dark .lt-phone-link {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}
.lt-screen-dark .lt-phone-link:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}
.lt-screen-gradient .lt-phone-link {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    backdrop-filter: blur(6px);
}
.lt-screen-gradient .lt-phone-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}
.lt-screen-neon .lt-phone-link {
    background: transparent;
    border: 1px solid #7c3aed;
    color: #fff;
    box-shadow: 0 0 8px rgba(124,58,237,0.2);
}
.lt-screen-neon .lt-phone-link:hover {
    background: #7c3aed;
    box-shadow: 0 0 20px rgba(124,58,237,0.4);
    transform: translateY(-1px);
}

.lt-phone-footer {
    margin-top: auto;
    font-size: 0.68rem;
    opacity: 0.3;
    font-weight: 500;
}

/* ═══ Linktree Modal ═════════════════════════════════════════── */
.lt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.lt-modal-overlay.lt-modal-open {
    opacity: 1;
    pointer-events: all;
}
.lt-modal {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 28px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.15);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.25s ease;
}
.lt-modal-open .lt-modal {
    transform: translateY(0) scale(1);
}
.lt-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.lt-modal-head h3 {
    font-size: 1.08rem;
    font-weight: 700;
}
.lt-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
}
.lt-modal-close:hover { color: var(--text-primary); }

/* ─── Toggle Switch ──────────────────────────────────────────── */
.lt-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 0;
}
.lt-toggle-input { display: none; }
.lt-toggle-track {
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 11px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.lt-toggle-input:checked + .lt-toggle-track {
    background: var(--color-success);
}
.lt-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}
.lt-toggle-input:checked + .lt-toggle-track .lt-toggle-thumb {
    transform: translateX(18px);
}
.lt-toggle-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}
