:root {
    --primary: #FF385C;
    --primary-hover: #E31C5F;
    --primary-light: rgba(255, 56, 92, 0.08);
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --text-dark: #0F172A;
    --text-gray: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}
html {
    width: 100%;
    max-width: 100%;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    height: 100dvh;
    z-index: 100;
}

.sidebar-logo {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
}

.sidebar-logo-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-img {
    height: 50px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin-left: 5px;
}

.sidebar, .main-content {
    transition: width 0.3s ease, margin-left 0.3s ease;
}

.desktop-sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.desktop-sidebar-toggle:hover { color: #FF385C; }

/* Collapsed State for Desktop */
.sidebar.collapsed { width: 70px; }
.sidebar.collapsed .sidebar-logo-inner span, 
.sidebar.collapsed .sidebar-logo-inner img,
.sidebar.collapsed .nav-item span, 
.sidebar.collapsed .status-text { display: none; }
.sidebar.collapsed .sidebar-logo { padding: 20px 0; justify-content: center; flex-direction: column; gap: 15px; }
.sidebar.collapsed .desktop-sidebar-toggle { transform: rotate(180deg); }
.sidebar.collapsed .nav-item { justify-content: center; padding: 15px 0; }
.sidebar.collapsed ~ .main-content { margin-left: 70px; }
.sidebar.collapsed .sidebar-footer { padding: 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.sidebar.collapsed .availability-card { padding: 8px; justify-content: center; flex-direction: column; gap: 8px; width: 100%; }
.sidebar.collapsed .availability-status { display: flex; justify-content: center; width: 100%; }
.sidebar.collapsed ~ .main-content .top-bar { width: calc(100% - 70px); }

@media (max-width: 850px) {
    .desktop-sidebar-toggle { display: none !important; }
}

.sidebar-logo span, .sidebar-logo i {
    background: linear-gradient(135deg, #FF385C 0%, #FF6B8B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    margin-bottom: 4px;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-item:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.availability-card {
    background: var(--bg-light);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-dot.online { background-color: var(--primary); }
.status-dot.offline { background-color: #94a3b8; }

.status-text {
    font-size: 13px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.top-bar {
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - 260px);
    z-index: 999;
    transition: width 0.3s ease;
}

.mobile-only-logo {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
}

.mobile-only-logo span, .mobile-only-logo i {
    background: linear-gradient(135deg, #FF385C 0%, #FF6B8B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    position: relative;
    width: 400px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-light);
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(20, 168, 0, 0.1);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-gray);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover { color: var(--primary); }

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF4B2B;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 700;
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 30px;
    transition: var(--transition);
}

.profile-dropdown:hover {
    background-color: var(--bg-light);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu.active {
    display: flex;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--radius-md);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.dropdown-item:not(.no-hover):hover {
    background-color: var(--bg-light);
}

.dropdown-item i {
    font-size: 16px;
    width: 24px;
    color: var(--text-gray);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.logout-item i {
    color: var(--primary);
}

/* Notification Menu */
.notification-menu {
    width: 320px;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    flex-direction: column;
}

.notification-menu .dropdown-header {
    padding: 16px;
    font-weight: 800;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background-color: var(--bg-light);
}

.notification-item.unread {
    background-color: var(--primary-light);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.notif-content p {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.4;
}

.notif-content span {
    font-size: 11px;
    color: var(--text-gray);
}

.dropdown-footer {
    padding: 12px;
    text-align: center;
}

.dropdown-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* Tab Views */
.tab-view {
    display: none;
    animation: fadeIn 0.4s ease;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.tab-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Settings Styles */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.settings-group {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.settings-group h3 {
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.settings-info p {
    font-size: 13px;
    color: var(--text-gray);
}

.danger-zone {
    border-bottom: none;
}

.danger-zone h3 {
    color: #dc2626;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}

.btn.danger {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.btn.danger:hover {
    background: #fecaca;
}

/* Content Container */
.content-container {
    padding: 70px 40px 40px 40px; /* flush with 70px top-bar */
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Profile Header Card */
.profile-header-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    opacity: 1;
    transition: opacity 0.35s ease;
    overflow: hidden;
    position: relative;
}

.profile-header-card.profile-loaded {
    opacity: 1;
}

/* Gradient Banner */
.profile-banner {
    height: 380px;
    position: relative;
    overflow: hidden;
    background: #1e293b;
}

.banner-cover-img {
    position: absolute;
    inset: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
    filter: brightness(0.92);
    transform: scale(1.05);
    image-rendering: -webkit-optimize-contrast;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.25) 100%);
}

/* Glassmorphic Stats Card on Cover */
.cover-stats-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 32px;
    z-index: 10;
    background: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 190px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.cover-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #d8b4fe;
}

.stat-info-wrap {
    display: flex;
    flex-direction: column;
}

.cover-stats-card .stat-value {
    font-size: 16px;
    font-weight: 800;
    color: white !important;
    line-height: 1.1;
}

.cover-stats-card .stat-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 1px;
}

/* Profile Body */
.profile-body {
    padding: 0 32px 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.profile-main-info {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
    margin-top: -64px;
}

.avatar-ring {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    padding: 4px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.avatar-lg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    display: block;
}

.avatar-status-dot {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10B981;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.profile-details {
    padding-bottom: 4px;
    padding-top: 16px;
}

.profile-details h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
    color: var(--text-dark);
}

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

.badge-premium {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    color: #059669;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(5, 150, 105, 0.15);
    position: relative;
    overflow: hidden;
    margin-top: 6px;
}

.badge-premium i {
    font-size: 10px;
}

.badge-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

.profile-info-line {
    font-size: 13.5px;
    color: var(--text-gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    line-height: 1.4;
}

.profile-info-line i {
    width: 16px;
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

.profile-handle i {
    background: linear-gradient(135deg, #E1306C, #F77737, #FCAF45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
}

.profile-category i {
    color: #8B5CF6;
}

.profile-location i {
    color: var(--primary);
}

.profile-bio {
    color: var(--text-gray);
    font-weight: 400;
    font-style: italic;
    font-size: 13px;
    margin-top: 6px;
    max-width: 100%;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    padding-bottom: 4px;
}

.header-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    padding: 9px 20px;
    white-space: nowrap;
}

.header-actions .btn-primary {
    box-shadow: 0 4px 14px rgba(255, 56, 92, 0.3);
}

.header-actions .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.4);
    transform: translateY(-1px);
}

.header-actions .btn-outline:hover {
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-hover); }

#btn-mark-completed {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 16px;
    white-space: nowrap;
}

.btn-outline {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover { background: var(--primary-light); }

.premium-btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.premium-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.premium-btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.premium-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Change Email Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

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

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.modal-close-icon {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-gray);
}

.modal-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

.modal-error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    flex: 1;
}

.followers { background: #E3F2FD; color: #2196F3; }
.likes { background: #FCE4EC; color: #E91E63; }
.comments { background: #FFF3E0; color: #FF9800; }
.engagement { background: #E8F5E9; color: #4CAF50; }
.aqs { background: #EDE7F6; color: #673AB7; }
.growth { background: #E0F7FA; color: #00ACC1; }

.stat-value { font-size: 18px; font-weight: 800; display: block; color: var(--text-dark); }
.stat-label { font-size: 11px; font-weight: 600; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.5px; }

.stat-trend {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.positive { color: #FF385C; }
.stat-trend.neutral { color: var(--text-gray); }

/* Section Cards */
.section-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-top: 0 !important;
    margin-bottom: 32px;
}

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

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0 !important;
}

/* Portfolio Grid UI */
.portfolio-grid-ui {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.portfolio-grid-ui::-webkit-scrollbar {
    display: none;
}
.w-100 { width: 100%; }

.portfolio-item-ui {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.portfolio-item-ui img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item-ui:hover img { transform: scale(1.05); }

.item-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E1306C;
    font-size: 18px;
}

/* Deals List */
.deals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deal-card {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.deal-card:hover { background: var(--bg-light); border-color: var(--primary); }

.deal-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-gray);
}

.deal-brand h3 { font-size: 15px; font-weight: 700; }
.deal-brand p { font-size: 13px; color: var(--text-gray); }

.deal-meta {
    text-align: right;
}

.deal-budget {
    display: block;
    font-weight: 800;
    font-size: 16px;
    color: var(--text-dark);
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.status-badge.progress { background: #E3F2FD; color: #2196F3; }
.status-badge.review { background: #FFF3E0; color: #FF9800; }

.tab-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pill {
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Right Column Components */
.pricing-card {
    background: linear-gradient(135deg, #FF385C 0%, #FF7E5F 100%);
    color: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    border: none;
    box-shadow: 0 8px 24px rgba(255, 56, 92, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 1;
    color: rgba(255, 255, 255, 0.9);
}

.price-main {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency { font-size: 16px; font-weight: 700; color: rgba(255,255,255,0.85); }
.amount { font-size: 32px; font-weight: 800; color: white; }
.per { font-size: 14px; color: rgba(255,255,255,0.75); font-weight: 600; }

.price-breakdown {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 12px;
    margin-bottom: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-footer {
    font-size: 11px;
    opacity: 0.75;
    text-align: center;
    color: white;
}

/* Trust Score */
.trust-card {
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.trust-badge-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.trust-circle {
    width: 60px;
    height: 60px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

.circular-chart.green .circle { stroke: #FF385C; }

.percentage {
    fill: #333;
    font-size: 0.5em;
    text-anchor: middle;
    font-weight: 700;
}

@keyframes progress {
    0% { stroke-dasharray: 0 100; }
}

.trust-bio {
    font-size: 13px;
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.6;
}

/* Requests */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-info h4 { font-size: 14px; font-weight: 700; }
.brand-info p { font-size: 12px; color: var(--text-gray); }

.request-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon.accept { background: var(--primary); color: white; }
.btn-icon.reject { background: #f0f0f0; color: var(--text-gray); }
.btn-icon.accept:hover { background: var(--primary-hover); }

/* Reviews */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-val { font-weight: 800; font-size: 18px; }
.stars { color: #FFC107; font-size: 14px; }
.rating-count { color: var(--text-gray); font-size: 13px; }

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.review-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.review-brand { font-weight: 700; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-gray); }

.review-stars {
    color: #FFC107;
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-tag {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.review-text {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.campaign-tag {
    font-size: 11px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-gray);
    font-weight: 600;
}

/* Custom Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 20px; }
.slider.round:before { border-radius: 50%; }

/* Smooth Toggle Transitions */
.switch input:checked + .slider {
    background-color: var(--primary);
    box-shadow: 0 0 12px rgba(255, 56, 92, 0.4);
}

.slider {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.slider:before {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Insights Card */
.insight-bg {
    background: rgba(255, 56, 92, 0.03);
    border-color: rgba(255, 56, 92, 0.1);
}

.insight-suggestion {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-color);
}

.insight-suggestion:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.insight-suggestion i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 2px;
}

.insight-suggestion p {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Bottom Nav Styles */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: none; /* Hidden by default, shown in media query */
    justify-content: space-around;
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    padding: 6px 12px;
    align-items: center;
    gap: 4px;
    color: var(--text-gray);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.bottom-nav .nav-item i {
    font-size: 20px;
}

.bottom-nav .nav-item.active {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
    .sidebar { width: 70px; }
    .sidebar-logo span, .sidebar .nav-item span, .status-text { display: none; }
    .sidebar-logo { padding: 20px 0; justify-content: center; }
    .sidebar .nav-item { justify-content: center; padding: 15px 0; }
    .main-content { margin-left: 70px; }
    .search-box { width: 200px; }
    
    .sidebar-footer { padding: 10px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
    .availability-card { padding: 8px; justify-content: center; flex-direction: column; gap: 8px; width: 100%; }
    .availability-status { display: flex; justify-content: center; width: 100%; }
    .availability-status i { margin: 0 !important; }
}

@media (max-width: 600px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    .app-container {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    * {
        box-sizing: border-box !important;
        word-wrap: break-word !important;
    }
    .dropdown-menu {
        position: absolute !important;
        right: -10px !important;
        width: 280px !important;
        max-width: calc(100vw - 40px) !important;
        z-index: 2000 !important;
    }
    .sidebar { display: none !important; }
    .main-content { margin-left: 0 !important; padding-bottom: 100px !important; overflow-x: hidden; width: 100%; max-width: 100%; }
    .top-bar { padding: 0 16px; position: fixed !important; top: 0; left: 0; width: 100% !important; z-index: 2000; justify-content: space-between; }
    .mobile-only-logo { display: flex !important; }
    .top-bar-actions { gap: 12px; }
    .content-container { padding: 16px 8px; overflow-x: hidden; width: 100%; max-width: 100%; margin-top: 70px; }
    .profile-header-card { text-align: left; }
    .profile-body { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 0; padding: 0 20px 24px; }

    .profile-main-info { flex-direction: column; align-items: flex-start; }
    .avatar-ring { width: 96px; height: 96px; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
    .name-row { justify-content: flex-start; }
    .header-actions { flex-wrap: wrap; justify-content: center; width: 100%; }
    .header-actions .btn { width: 100%; justify-content: center; }
    
    /* Stats grid fix to wrap properly */
    .stats-grid { 
        display: grid !important; 
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        padding-bottom: 0;
        width: 100%;
        max-width: 100%;
    }
    .stats-grid .stat-card {
        padding: 8px 2px !important;
        gap: 4px !important;
        border-radius: 10px;
        flex-direction: column;
        text-align: center;
        align-items: center;
        width: 100%;
        min-width: 0;
    }
    .stats-grid .stat-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
        border-radius: 6px;
        margin: 0 auto;
    }
    .stats-grid .stat-value {
        font-size: 12px !important;
        font-weight: 800;
    }
    .stats-grid .stat-label {
        font-size: 7.5px !important;
        text-transform: uppercase;
        letter-spacing: 0.1px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .section-card, .pricing-card, .trust-card {
        padding: 16px !important;
        margin: 0 0 20px 0 !important;
        border-radius: 16px !important;
    }
    .pricing-card .amount { font-size: 32px !important; }
    .pricing-card .currency { font-size: 18px !important; }
    .pricing-card .per { font-size: 14px !important; }
    .section-header h2 { font-size: 16px !important; margin-bottom: 12px; }
    .section-card p, .trust-bio { font-size: 13px !important; line-height: 1.5; }

    .bottom-nav { display: flex !important; }
    .profile-dropdown.desktop-hide { display: flex !important; }
}

.profile-dropdown.desktop-hide {
    display: none;
}

/* --- MESSAGING SYSTEM --- */
.chat-layout {
    display: flex;
    height: calc(100vh - 140px);
    height: calc(100dvh - 140px);
    overflow: hidden;
}

.chat-sidebar {
    width: 320px;
    background: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.chat-sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.conversation-list {
    flex: 1;
    overflow-y: auto;
}

.conv-loader-state {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
}

.conv-loader-icon {
    margin-bottom: 8px;
    font-size: 18px;
    color: var(--primary);
}

.conv-item {
    display: flex;
    padding: 16px 20px;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.2s;
}

.conv-item:hover {
    background: #F9FAFB;
}

.conv-item.active {
    background: #F0F7FF;
    border-left: 4px solid var(--primary);
}

.conv-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: visible;
    background: transparent;
    flex-shrink: 0;
}

.conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-name-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.conv-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-time {
    font-size: 11px;
    color: var(--text-gray);
}

.conv-last-msg {
    font-size: 12px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
}

.chat-lock-overlay {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
    padding: 20px;
    overflow-y: auto;
}

.lock-icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.lock-icon-container i {
    font-size: 32px;
    color: var(--primary);
}

.chat-lock-overlay h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.chat-lock-overlay p {
    font-size: 14px;
    color: var(--text-gray);
    max-width: 300px;
    line-height: 1.6;
}

.chat-header {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-info h3 {
    font-size: 15px;
    font-weight: 600;
}

.chat-status {
    font-size: 11px;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
}

.contract-tabs {
    display: flex;
    gap: 20px;
    margin-left: auto;
    margin-right: 24px;
}

.c-tab {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px 0;
    position: relative;
}

.c-tab.active {
    color: var(--primary);
}

.c-tab.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.message-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #FDFDFF;
    display: none;
    flex-direction: column;
    gap: 16px;
}

/* --- PREMIUM CHAT BUBBLE STYLES --- */
.msg-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.msg-inbound {
    background: #f1f5f9;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-outbound {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.msg-time {
    font-size: 10px;
    margin-top: 4px;
    opacity: 0.6;
    display: block;
}

.msg-outbound .msg-time {
    text-align: right;
    color: rgba(255,255,255,0.8);
}

.msg-bubble a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
    font-weight: 500;
}

.msg-bubble a:hover {
    opacity: 0.85;
}

/* --- PREMIUM WHATSAPP/IMESSAGE STYLE MEDIA MESSAGES --- */
.msg-bubble.msg-media-only {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    position: relative !important;
    max-width: 280px !important;
    border: none !important;
}

.msg-bubble.msg-media-only img,
.msg-bubble.msg-media-only video {
    width: 100% !important;
    max-width: 280px !important;
    max-height: 340px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 18px !important;
    cursor: pointer !important;
    transition: transform 0.2s ease;
}

.msg-bubble.msg-media-only img:hover,
.msg-bubble.msg-media-only video:hover {
    transform: scale(1.015);
}

.msg-bubble.msg-media-only .msg-time-overlay {
    position: absolute !important;
    bottom: 8px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.55) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    backdrop-filter: blur(6px) !important;
    color: white !important;
    padding: 3px 8px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    letter-spacing: 0.2px;
}

.privacy-banner {
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    color: #92400E;
    margin: 0 24px 16px;
    display: none;
    align-items: center;
    gap: 10px;
}

/* --- PREMIUM CHAT INPUT STYLES --- */
.chat-input-container {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-color);
    background: white;
    display: none;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.chat-input-wrapper:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.1);
    background: white;
}

.chat-input-wrapper input[type="text"] {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-dark);
}

.chat-input-wrapper input[type="text"]::placeholder {
    color: #94a3b8;
}

.chat-input-wrapper input[type="text"]:disabled {
    cursor: not-allowed;
    color: #64748b;
}

.attachment-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--text-gray);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.attachment-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.btn-send {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(255, 56, 92, 0.3);
}

.btn-send:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(255, 56, 92, 0.4);
}

/* Mobile Optimization for Dashboard */
@media (max-width: 600px) {
    .earnings-card-premium {
        padding: 12px 16px !important;
        border-radius: 12px !important;
    }
    .earnings-card-premium > div:first-child > div:last-child {
        font-size: 24px !important;
    }
    .earnings-card-premium > div:first-child > div:last-child span:first-child {
        font-size: 20px !important;
    }
    .ig-recent-posts-section {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    .ig-posts-grid {
        margin: 0 !important;
        padding: 0 0 8px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    .ig-posts-grid > div {
        flex: 0 0 90px !important;
    }
    .stats-grid {
        /* User originally had a custom grid, removing this problematic flex override and negative margin */
        margin: 0 !important;
        padding: 0 0 16px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    .stats-grid::-webkit-scrollbar {
        display: none !important;
    }
    /* Let the earlier grid styles handle stats-grid cards, removing the overriding flex styling */
    .stat-card {
        padding: 10px 6px !important;
        gap: 6px !important;
        min-width: 0 !important;
    }
    .stat-card .stat-icon {
        margin: 0 auto !important;
        width: 22px !important;
        height: 22px !important;
    }
    .stat-card .stat-icon i {
        font-size: 9px !important;
    }
    .stat-card .stat-value {
        font-size: 10px !important;
        line-height: 1.1 !important;
        word-break: break-word !important;
    }
    .stat-card .stat-label {
        font-size: 7px !important;
        white-space: normal !important;
        line-height: 1.1 !important;
        margin-bottom: 2px !important;
    }
    .stat-card .stat-trend {
        font-size: 8px !important;
        padding: 2px 4px !important;
    }
    .dashboard-content-wrapper {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .dashboard-content-wrapper > *,
    .pricing-card,
    .trust-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .dashboard-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .dashboard-left,
    .dashboard-right {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
}
/* Icon utility classes */
.icon-lg { font-size: 20px; }
.icon-md { font-size: 18px; }
.icon-sm { font-size: 10px; }

.text-primary { color: var(--primary, #FF385C); }
.text-ig { color: #E1306C; }

/* Dashboard Clean Styles - Base */
.earnings-card-premium { background: var(--white, #fff); border-radius: var(--radius-md, 12px); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; box-shadow: var(--shadow-sm, 0 2px 4px rgba(0,0,0,0.04)); border: 1px solid var(--border-color, #E2E8F0); width: 100%; }
.earnings-details-col { display: flex; flex-direction: column; }
.earnings-title { font-size: 13px; font-weight: 600; color: var(--text-gray, #64748B); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.earnings-amount { font-size: 28px; font-weight: 800; color: var(--text-dark, #0F172A); letter-spacing: -0.02em; }
.earnings-currency { color: var(--text-gray, #64748B); font-size: 24px; margin-right: 2px; }
.earnings-trend-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light, rgba(255, 56, 92, 0.08)); display: flex; align-items: center; justify-content: center; }
.ig-recent-posts-section { margin-bottom: 24px; }
.ig-posts-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ig-posts-title { font-size: 15px; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 6px; }
.ig-posts-subtitle { font-size: 12px; color: var(--text-gray); margin-bottom: 4px; font-style: italic; }
.ig-posts-subtitle-2 { font-size: 12px; color: var(--text-gray); margin-bottom: 16px; font-style: italic; display: flex; align-items: center; gap: 4px; }
.ig-post-item { flex: 0 0 100px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; scroll-snap-align: start; background: #e2e8f0; }
.ig-post-img { width: 100%; height: 100%; object-fit: cover; }
.ig-post-likes { position: absolute; bottom: 6px; right: 6px; color: white; font-size: 10px; font-weight: 600; background: rgba(0,0,0,0.6); padding: 2px 6px; border-radius: 4px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.ig-posts-grid { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; width: 100%; max-width: 100%; box-sizing: border-box; }

/* Change Email Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

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

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.modal-close-icon {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-gray);
}

.modal-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

.modal-error {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    flex: 1;
}

/* Account & Security UI Upgrades */
.col-span-full { grid-column: 1 / -1; }

.security-status-card, .security-activity-card, .active-sessions-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.security-status-card h4, .security-activity-card h4, .active-sessions-card h4 {
    margin-bottom: 16px;
    font-size: 14px;
    color: #1e293b;
    font-weight: 700;
}

.security-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sec-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sec-check i {
    font-size: 18px;
    color: #64748b;
    width: 24px;
    text-align: center;
}

.sec-check.verified i { color: #10b981; }
.sec-check.warning i { color: #f59e0b; }
.sec-check.danger i { color: #ef4444; }

.sec-check-info h5 {
    font-size: 13px;
    margin-bottom: 2px;
    color: #334155;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge.secure { background: #d1fae5; color: #065f46; }
.badge.risk { background: #fee2e2; color: #991b1b; }
.badge.action-required { background: #fef3c7; color: #92400e; }

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.activity-stat {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-stat span {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-stat strong {
    font-size: 13px;
    color: #1e293b;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #10b981; /* Highlight current session */
}

.session-icon {
    font-size: 24px;
    color: #10b981;
}

.session-info h5 {
    font-size: 14px;
    margin-bottom: 2px;
    font-weight: 600;
}

.session-info p {
    font-size: 12px;
    color: #64748b;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-logout-disabled {
    color: var(--text-gray);
    border-color: #e2e8f0;
}

/* Settings Accordion Styles */
.accordion-group {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
    overflow: hidden;
    padding: 0 !important;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: white;
    transition: background 0.2s;
    -webkit-user-select: none;
    user-select: none;
}

.accordion-header:hover {
    background: #f8fafc;
}

.accordion-header h3 {
    margin: 0 !important;
    font-size: 16px;
    color: var(--text-dark);
}

.accordion-header .chevron {
    transition: transform 0.3s ease;
    color: var(--text-gray);
    font-size: 14px;
}

.accordion-group.active .accordion-header .chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
    background: white;
}

.accordion-group.active .accordion-content {
    max-height: 2000px;
    padding: 0 20px 20px 20px;
}

/* --- MOBILE CHAT NAVIGATION (WhatsApp Style) --- */
@media (max-width: 768px) {
    .chat-layout {
        height: 100vh;
        height: 100dvh;
        position: relative;
    }

    .chat-sidebar {
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        border: none;
        position: absolute;
        top: 0;
        left: 0;
        background: white;
        z-index: 10;
        transition: transform 0.3s ease;
    }

    /* Hide sidebar when chat is active */
    .chat-layout.has-active-chat .chat-sidebar {
        transform: translateX(-100%);
    }

    .chat-sidebar-header {
        padding: 16px 12px;
    }

    .chat-filters {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 4px !important;
        gap: 6px !important;
    }
    .chat-filters::-webkit-scrollbar {
        display: none !important;
    }
    
    .chat-filter-btn {
        flex: 0 0 auto !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .chat-main {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        z-index: 10000;
        display: none;
        flex-direction: column;
        background: white;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .chat-main.active {
        display: flex !important;
        transform: translateX(0);
    }

    .chat-header {
        padding: 10px 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        flex-shrink: 0;
        gap: 8px;
    }

    .chat-header-user {
        min-width: 0;
        flex: 1;
    }

    .chat-header-info {
        min-width: 0;
    }

    .chat-header-info h3 {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 130px;
    }

    .chat-header-actions {
        flex-shrink: 0;
    }

    #btn-mark-completed {
        padding: 5px 9px !important;
        font-size: 10px !important;
        border-radius: 12px !important;
        white-space: nowrap;
        line-height: 1.3;
    }


    .mobile-back-chat {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-right: 8px;
        cursor: pointer;
        font-size: 18px;
        color: var(--text-dark);
        background: #f1f5f9;
        border-radius: 50%;
    }

    .contract-tabs {
        display: none;
    }
    
    .message-area {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px;
    }

    .msg-bubble {
        max-width: 85%;
        font-size: 15px;
        word-wrap: break-word;
    }

    .chat-input-container {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: white;
        border-top: 1px solid #f1f5f9;
        flex-shrink: 0;
        width: 100%;
    }

    .chat-input-wrapper {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 6px 12px;
        gap: 8px;
    }

    .privacy-banner {
        margin: 0 16px 8px;
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Chat Microhone Button */
.mic-btn {
    background: white; 
    color: var(--text-gray); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.04); 
    border: 1px solid #e2e8f0;
}

/* Chat Filters (Premium Segmented Control) */
.chat-filters {
    display: flex !important;
    background: transparent;
    padding: 2px 0;
    margin: 4px 0 8px 0;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    overflow-x: auto;
    -ms-overflow-style: none;
}
.chat-filters::-webkit-scrollbar {
    display: none;
}

/* Dropdown Menu Format for Desktop View */
.chat-filter-select {
    display: none;
    width: 100% !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    cursor: pointer !important;
    outline: none !important;
    margin-top: 6px !important;
    margin-bottom: 4px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239333ea' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    transition: all 0.2s ease !important;
}

.chat-filter-select:hover,
.chat-filter-select:focus {
    border-color: #a855f7 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15) !important;
}

@media (min-width: 769px) {
    .chat-filters { display: none !important; }
    .chat-filter-select { display: block !important; }
}

@media (max-width: 768px) {
    .chat-filters { display: flex !important; }
    .chat-filter-select { display: none !important; }
}

.chat-filter-btn {
    flex: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    outline: none;
}

.chat-filter-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.chat-filter-btn.active {
    background: #a855f7;
    color: #ffffff;
    border-color: #a855f7;
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.25);
}

/* Deal Cards UI */
.deal-card-ui {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.deal-card-ui:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.deal-card-ui-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.deal-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.deal-card-info {
    display: flex;
    flex-direction: column;
}

.deal-card-date {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 4px;
    font-weight: 500;
}

.deal-card-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.deal-brand-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.deal-unread-badge {
    background: #ef4444;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
}

.deal-card-details {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
    font-weight: 500;
}

.deal-card-ui-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.deal-status-badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--text-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-action-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.deal-action-icon {
    border: none;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.deal-action-icon.accept {
    background: #10B981;
}

.deal-action-icon.reject {
    background: #ef4444;
}

.deal-chat-btn {
    width: auto;
    min-width: 80px;
}

/* Mobile Responsiveness for Deals */
@media (max-width: 600px) {
    #view-deals .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #view-deals .section-header h2 {
        font-size: 17px;
        color: var(--text-dark);
    }

    #view-deals .tab-pills {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        gap: 3px;
    }

    #view-deals .tab-pills .pill {
        padding: 3px 7px;
        font-size: 10px;
        font-weight: 500;
    }

    #view-deals .tab-pills::-webkit-scrollbar {
        height: 4px;
    }

    #view-deals .tab-pills::-webkit-scrollbar-thumb {
        background: #e2e8f0;
        border-radius: 4px;
    }

    .deal-card-ui {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 16px;
    }

    .deal-card-header-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .deal-card-ui-left {
        width: 100%;
    }

    .deal-brand-name {
        max-width: 100% !important;
    }

    .deal-card-ui-right {
        width: 100% !important;
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 4px;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
    }

    .deal-card-ui-right > div {
        width: 100% !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .deal-chat-btn {
        width: auto !important;
        padding: 8px 16px !important;
    }
}

/* --- Legal submenu styles to replace inline styles --- */
.legal-toggle-transition {
    transition: all 0.2s;
}
.legal-chevron-transition {
    transition: transform 0.2s;
}
.legal-submenu-container {
    background: white;
    border: 1px solid var(--border-light);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-bottom: 16px;
    padding: 8px 16px 16px 16px;
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: -16px;
}
.legal-submenu-link {
    display: flex;
    align-items: center;
    padding: 12px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 15px;
    font-weight: 500;
}
.legal-submenu-link:hover {
    background: #f8fafc !important;
}
.legal-submenu-icon {
    width: 28px;
    color: var(--primary);
}

#tier-guidance-banner {
    display: none;
}

/* Payments Center Layout */
.kyc-status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.alert-action-required {
    background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.2);
    box-shadow: 0 8px 24px rgba(127, 29, 29, 0.25);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px 24px;
}
.alert-action-required::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #ef4444;
    border-radius: 16px 0 0 16px;
    box-shadow: 0 0 12px #ef4444;
}
.alert-action-required i {
    font-size: 20px;
    color: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
}
.alert-pending {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}
.alert-verified {
    background-color: #f0fdf4;
    color: #10b981;
    border: 1px solid #d1fae5;
}
.alert-rejected {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.payment-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .payment-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.p-stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.p-stat-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}
.p-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}
.p-stat-desc {
    font-size: 11px;
    color: #94a3b8;
}

.withdrawal-cooldown-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fef3c7;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}
.withdrawal-cooldown-alert i {
    font-size: 18px;
    color: #d97706;
    margin-top: 2px;
}

/* ── DEAL-WISE PAYOUT CARDS ── */
.available-payouts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.payout-deal-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.25s ease;
}
.payout-deal-card:hover {
    border-color: var(--accent-primary, #6366f1);
    box-shadow: 0 2px 12px rgba(99,102,241,0.08);
}
.payout-deal-info {
    flex: 1;
    min-width: 0;
}
.payout-deal-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.payout-deal-id {
    font-size: 11px;
    color: var(--text-gray, #94a3b8);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-bottom: 4px;
}
.payout-deal-deliverables {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    margin-bottom: 4px;
}
.payout-deal-amount {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
}
.payout-deal-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.btn-request-payout {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-request-payout:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.btn-request-payout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.payout-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.payout-badge-requested {
    background: #fef3c7;
    color: #92400e;
}
.payout-badge-processing {
    background: #dbeafe;
    color: #1d4ed8;
}
.payout-badge-paid {
    background: #d1fae5;
    color: #065f46;
}
.payout-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-gray, #94a3b8);
}
.payout-empty-state i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.4;
    display: block;
}
.payout-empty-state p {
    font-size: 14px;
    margin: 0;
}
.payout-loading-state {
    text-align: center;
    padding: 24px;
    color: var(--text-gray, #94a3b8);
    font-size: 13px;
}
@media (max-width: 520px) {
    .payout-deal-card {
        flex-direction: column;
        align-items: stretch;
    }
    .payout-deal-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-top: 8px;
    }
}

.withdraw-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.currency-prefix {
    position: absolute;
    left: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
}
.withdraw-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 32px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-sizing: border-box;
}

.masked-display {
    padding: 12px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    font-family: monospace;
    letter-spacing: 1px;
    -webkit-user-select: none;
    user-select: none;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}
.ledger-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ledger-table th, .ledger-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.ledger-table th {
    font-weight: 700;
    color: #475569;
    background-color: #f8fafc;
}
.ledger-table td {
    color: #0f172a;
}
.ledger-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.l-badge-pending-clearance {
    background-color: #eff6ff;
    color: #1d4ed8;
}
.l-badge-available {
    background-color: #f0fdf4;
    color: #166534;
}
.l-badge-requested {
    background-color: #fffbeb;
    color: #b45309;
}
.l-badge-paid {
    background-color: #10b981;
    color: #ffffff;
}
.l-badge-rejected {
    background-color: #fef2f2;
    color: #b91c1c;
}

.sandbox-card {
    background: #fcfdf9 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(101, 163, 13, 0.08) !important;
}
.sandbox-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.sandbox-actions {
    display: flex;
    gap: 8px;
}
.btn-sandbox-approve {
    background-color: #84cc16;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}
.btn-sandbox-reject {
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

/* Inline styles replacement classes for Payments tab */
.p-hide {
    display: none;
}
.cooldown-text {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #b45309;
}
.withdraw-wrapper-margin {
    margin-top: 8px;
}
.btn-withdraw-submit {
    margin-top: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.kyc-header-click {
    cursor: pointer;
}
.kyc-fields-wrapper {
    margin-top: 16px;
}
.kyc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .kyc-form-grid {
        grid-template-columns: 1fr;
    }
    .kyc-upi-group {
        grid-column: span 1 !important;
    }
}
.kyc-form-grid .form-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.kyc-input-style {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
}
.kyc-pan-input {
    text-transform: uppercase;
}
.kyc-upi-group {
    grid-column: span 2;
}
.kyc-submit-btn-style {
    margin-top: 16px;
    width: 100%;
}
.ledger-empty-cell {
    text-align: center;
    color: var(--text-gray);
    padding: 30px;
}
.sandbox-header-style {
    color: #84cc16;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sandbox-title-style {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.sandbox-title-mt {
    margin-top: 10px;
}
.sandbox-text-style {
    font-size: 13px;
    color: var(--text-gray);
}
.sandbox-section-divider {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.kyc-content-collapsed {
    display: none;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* Instagram Connection Card Styles */
#dashboard-ig-card {
    background: linear-gradient(145deg, #0f172a 0%, #020617 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}
.ig-card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(225,48,108,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.ig-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.ig-hidden-default {
    display: none;
}
.ig-card-title-area {
    flex: 1;
}
.ig-card-title {
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}
.ig-card-title i {
    color: #E1306C;
    font-size: 24px;
}
.ig-card-desc {
    color: #94a3b8;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
}
.ig-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ig-card-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: linear-gradient(135deg, #E1306C 0%, #833AB4 100%) !important;
    border: none !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.ig-card-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.5) !important;
}
.ig-card-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    background: rgba(255,255,255,0.03) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding: 10px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.ig-card-btn-outline:hover {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}
.ig-connected-info {
    position: relative;
    z-index: 1;
}
.ig-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ig-stat-label {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ig-stat-value {
    font-weight: 600;
    font-size: 17px;
    margin-top: 6px;
}
.ig-stat-time {
    font-weight: 500;
    font-size: 14px;
    margin-top: 6px;
    color: #cbd5e1;
}
.ig-status-badge {
    margin-top: 6px;
}
.ig-status-badge-span {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
    padding: 4px 10px;
    font-weight: 600;
}
.ig-auto-sync {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}
.ig-auto-sync-title {
    color: #4ade80;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ig-settings-last-sync {
    display: none;
    margin-top: 5px;
}
.ig-settings-actions {
    display: flex;
    gap: 10px;
}
@media (max-width: 992px) {
    .ig-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    #dashboard-ig-card { padding: 20px !important; }
    .ig-card-header { flex-direction: column; }
    .ig-card-actions { width: 100%; gap: 8px; }
    .ig-card-actions button { flex: 1; justify-content: center; padding: 10px 6px; font-size: 11.5px; white-space: nowrap; }
    .ig-stats-grid { gap: 20px; }
}
@media (max-width: 480px) {
    .ig-stats-grid { grid-template-columns: 1fr; gap: 16px; }
}

.ci-dashboard-adjust {
    display: none;
    border-top: none;
    margin-top: 0;
    padding-top: 20px;
}
.ci-recent-content,
.ci-header-area,
.ci-gallery-tabs {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* CROP MODAL STYLES */
.crop-modal-content {
    max-width: 600px;
    width: 90%;
}
.crop-container {
    width: 100%;
    height: 60vh;
    max-height: 500px;
    overflow: hidden;
    background-color: #000;
    position: relative;
}
.crop-container img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .cover-stats-card {
        padding: 12px 16px;
        gap: 10px;
        min-width: 140px;
        right: 16px;
        border-radius: 16px;
    }
    .stat-icon-wrap {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .cover-stats-card .stat-value {
        font-size: 12px;
    }
    .cover-stats-card .stat-label {
        font-size: 8px;
    }
}

.pfp-action-btns {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.pfp-action-btns button {
    margin-top: 0 !important;
}

#upload-warning-text {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
    text-align: center;
    background: #FEF2F2;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #FCA5A5;
}

/* Premium Payment Layout Overrides */
.payment-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.glass-premium-card {
    background: linear-gradient(135deg, #fd297b 0%, #ff655b 100%);
    border: 1px solid rgba(255, 255, 255, 0.3); /* Soft white border */
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px -10px rgba(253, 41, 123, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.glass-premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(253, 41, 123, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}
.glass-premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
}
.stat-available::before { background: rgba(255,255,255,0.4); }
.stat-pending::before { background: rgba(255,255,255,0.4); }
.stat-lifetime::before { background: rgba(255,255,255,0.4); }
.stat-withdrawn::before { background: rgba(255,255,255,0.4); }

.p-stat-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* We don't need different colors anymore, since all are white on gradient */
.stat-available .p-stat-icon-wrapper { background: rgba(255, 255, 255, 0.2); color: #fff; }
.stat-pending .p-stat-icon-wrapper { background: rgba(255, 255, 255, 0.2); color: #fff; }
.stat-lifetime .p-stat-icon-wrapper { background: rgba(255, 255, 255, 0.2); color: #fff; }
.stat-withdrawn .p-stat-icon-wrapper { background: rgba(255, 255, 255, 0.2); color: #fff; }

.p-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.p-stat-title {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.p-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}
.premium-gradient-text {
    color: #ffffff;
}
.p-stat-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

/* Premium Withdrawal Panel */
.payout-action-panel {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    padding: 32px;
    margin-bottom: 30px;
}
.payout-action-panel .section-header h2 i {
    margin-right: 8px;
    color: var(--accent-primary, #6366f1);
}
.withdrawal-form-group .withdraw-input-wrapper input {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    border-radius: 0;
}
.withdrawal-form-group .withdraw-input-wrapper input:focus {
    border-bottom-color: #FF385C;
    box-shadow: none;
}
.btn-withdraw-submit {
    background: linear-gradient(90deg, #FF385C, #E61E4D);
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 56, 92, 0.3);
    transition: all 0.3s ease;
}
.btn-withdraw-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 56, 92, 0.4);
}

/* Premium KYC Panel */
.kyc-panel {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.kyc-header-click {
    padding: 24px 32px;
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-bottom: 1px solid #f1f5f9;
}
.kyc-fields-wrapper {
    padding: 32px;
    background: #fafbfc;
}
.kyc-input-style {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
.kyc-input-style:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

@media (max-width: 768px) {
    #view-payments {
        padding: 0 12px;
    }
    .kyc-status-banner {
        padding: 12px 14px;
        font-size: 12px;
        gap: 8px;
        border-radius: 10px;
    }
    .payment-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .glass-premium-card {
        padding: 10px;
        gap: 6px;
        border-radius: 12px;
    }
    .p-stat-value {
        font-size: 16px;
    }
    .p-stat-title {
        font-size: 9px;
        letter-spacing: 0;
    }
    .p-stat-desc {
        font-size: 9px;
        line-height: 1.2;
    }
    .p-stat-icon-wrapper {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 8px;
    }
    .payout-action-panel, .kyc-fields-wrapper {
        padding: 16px;
    }

    /* Responsive Ledger Table -> Cards */
    .ledger-table thead {
        display: none;
    }
    .ledger-table, .ledger-table tbody, .ledger-table tr, .ledger-table td {
        display: block;
        width: 100%;
    }
    .ledger-table tr {
        margin-bottom: 16px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }
    .ledger-table td {
        text-align: right;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
    }
    .ledger-table td:last-child {
        border-bottom: none;
    }
    .ledger-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        text-align: left;
        font-weight: 600;
        color: #64748b;
    }
    /* Set labels for each column using nth-child */
    .ledger-table td:nth-child(1)::before { content: "Date"; }
    .ledger-table td:nth-child(2)::before { content: "Details"; }
    .ledger-table td:nth-child(3)::before { content: "Breakdown"; }
    .ledger-table td:nth-child(4)::before { content: "Amount"; }
    .ledger-table td:nth-child(5)::before { content: "Status"; }
}

/* Accordion Transaction Cards (Replaces Ledger Table) */
.ledger-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.t-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}
.t-card:hover {
    border-color: #cbd5e1;
}
.t-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #f8fafc;
    transition: background 0.2s ease;
}
.t-card-header:hover {
    background: #f1f5f9;
}
.t-card-header.header-paid-success {
    background: #10b981 !important;
}
.t-card-header.header-paid-success .t-card-title,
.t-card-header.header-paid-success .t-card-date,
.t-card-header.header-paid-success .t-card-amount,
.t-card-header.header-paid-success .t-card-chevron {
    color: #ffffff !important;
}
.t-card-header.header-paid-success:hover {
    background: #059669 !important;
}
.t-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.t-card-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}
.t-card-date {
    font-size: 13px;
    color: #64748b;
}
.t-card-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.t-card-amount {
    font-weight: 700;
    font-size: 16px;
}
.t-card-chevron {
    color: #94a3b8;
    transition: transform 0.3s ease;
}
.t-card.expanded .t-card-chevron {
    transform: rotate(180deg);
}
.t-card-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}
.t-card.expanded .t-card-body {
    max-height: 300px;
    opacity: 1;
    border-top: 1px solid #f1f5f9;
}
.t-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f8fafc;
}
.t-card-row:last-child {
    border-bottom: none;
}
.t-card-label {
    font-weight: 500;
    color: #64748b;
    font-size: 14px;
}
.t-card-value {
    color: #334155;
    font-size: 14px;
    line-height: 1.4;
    max-width: 65%;
    padding-right: 28px;
}

/* WhatsApp style circular crop */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}
.cropper-view-box {
    box-shadow: 0 0 0 1px #39f;
    outline: 0;
}
.cropper-face {
    background-color: inherit;
}
.cropper-dashed,
.cropper-point,
.cropper-line,
.cropper-center {
    display: none !important;
}

.crop-zoom-container {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}
.crop-zoom-slider {
    flex: 1;
    accent-color: var(--primary);
}
.crop-zoom-icon-small {
    font-size: 14px;
    color: #64748b;
}
.crop-zoom-icon-large {
    font-size: 20px;
    color: #64748b;
}

.bm-barter-container { display: none; margin-top: 16px; }
.text-danger { color: #ef4444; }

.ci-content-grid { padding-left: 0 !important; padding-right: 0 !important; }

.city-state-group { display: flex; gap: 16px; }
.city-state-field { flex: 1; }
/* Audience Activation Score Card */
.aas-card {
    margin-top: 24px;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}
.aas-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.aas-card-title i {
    color: #a855f7;
}
.aas-badge-container {
    align-items: flex-start !important;
}
.aas-circle {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}
.aas-chart {
    stroke: #a855f7;
}
.aas-chart .circle-bg {
    stroke: #334155;
}
.aas-chart .circle {
    stroke: #a855f7;
}
.aas-chart .percentage {
    fill: #a855f7 !important;
    stroke: none !important;
    font-weight: 700;
    font-size: 0.55em;
    font-family: 'Outfit', 'Inter', sans-serif;
}
.aas-content {
    flex: 1;
}
.aas-status {
    font-size: 16px;
    margin-bottom: 4px;
    color: #fff;
}
.aas-status-text {
    color: #a855f7;
}
.aas-description {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 12px;
}
.aas-info-box {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 12px;
}
.aas-info-title {
    font-size: 13px;
    color: #fff;
    margin-bottom: 8px;
}
.aas-info-list {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    padding-left: 16px;
    line-height: 1.6;
}

/* Extracted inline styles from dashboard.html */
.dash-lang-container { display: none; margin-top: 4px; font-size: 14px; color: #475569; }
.settings-phone-view-mode { display: none; }
.settings-current-phone { font-weight: 500; font-size: 15px; color: var(--text-dark); margin: 6px 0; }
.settings-otp-container { display: none; margin-top: 10px; align-items: center; gap: 10px; flex-wrap: wrap; }
.settings-otp-input { width: 180px; letter-spacing: 2px; text-align: center; }
.btn-verify-phone { padding: 8px 16px; }
.btn-change-phone { display: none; }
.tx-history-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.tx-history-title { margin: 0; }
.tx-history-filter { width: auto; min-width: 130px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border-light); font-size: 14px; background-color: var(--surface); color: var(--text-dark); }


/* Hide performance growth pills as requested */
.perf-growth-pill {
    display: none !important;
}

#btn-dash-disconnect-ig {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}
#btn-dash-disconnect-ig:hover {
    background-color: rgba(239, 68, 68, 0.05) !important;
}

/* ===== Creator Video Fallback Styles ===== */

/* Creator dashboard: Reel fallback upload section */
.reel-fallback-section-card {
    display: none;
    margin-top: 20px;
}

#reel-fallback-upload {
    display: none;
}

#reel-fallback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    width: 100%;
}

.reel-fallback-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.reel-fallback-section .section-title {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reel-fallback-section .section-subtitle {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Individual reel fallback card */
.reel-fallback-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.reel-fallback-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.reel-fallback-card .reel-thumb {
    width: 56px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #1e293b;
    flex-shrink: 0;
}

.reel-fallback-card .reel-info {
    flex: 1;
    min-width: 0;
}

.reel-fallback-card .reel-info .reel-caption {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.reel-fallback-card .reel-info .reel-status {
    font-size: 11px;
    font-weight: 600;
}

.reel-fallback-card .reel-info .reel-status.unavailable {
    color: #f59e0b;
}

.reel-fallback-card .reel-info .reel-status.ready {
    color: #22c55e;
}

.reel-fallback-card .reel-action-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}

.reel-fallback-card .reel-action-btn.upload-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
}

.reel-fallback-card .reel-action-btn.upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.reel-fallback-card .reel-action-btn.delete-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.reel-fallback-card .reel-action-btn.delete-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

.reel-fallback-empty {
    text-align: center;
    padding: 24px;
    color: #475569;
    font-size: 13px;
}

#ig-reconnect-warning-banner {
    display: none;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    margin-bottom: 20px;
    animation: heartbeat-pulse 2.2s infinite ease-in-out;
    align-items: flex-start;
    gap: 12px;
    color: #ef4444;
}

#ig-reconnect-warning-banner.show-warning {
    display: flex;
}

#ig-reconnect-warning-banner i {
    font-size: 20px;
    color: #ef4444;
    margin-top: 2px;
    flex-shrink: 0;
}

.reconnect-warning-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: #ef4444;
    font-family: 'Outfit', sans-serif;
}

.reconnect-warning-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.reconnect-warning-desc ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.reconnect-warning-desc li {
    margin-bottom: 4px;
    color: #94a3b8;
}

@keyframes heartbeat-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        transform: scale(1.015);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* --- FIXED NATIVE MOBILE APP CHAT & NO AUTO-ZOOM PREVENTIONS --- */
@media (max-width: 768px) {
    html, body {
        touch-action: pan-y;
        overscroll-behavior-y: auto;
    }

    input, select, textarea, #chat-input, .chat-input-wrapper input {
        font-size: 16px !important; /* Disables mobile browser auto-zoom on input focus */
        touch-action: manipulation;
    }

    .chat-layout.has-active-chat,
    .chat-main.active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        z-index: 9999 !important;
        background: white !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .chat-main-header {
        flex-shrink: 0 !important;
        position: sticky !important;
        top: 0 !important;
        background: white !important;
        z-index: 10 !important;
    }

    #message-bubbles {
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 16px !important;
    }

    .chat-input-container {
        flex-shrink: 0 !important;
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
        z-index: 10 !important;
    }
}


/* ==========================================================================
   Dashboard Onboarding Tour Styles
   ========================================================================== */

.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.tour-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tour-welcome-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    background: var(--white);
    width: 90%;
    max-width: 450px;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tour-welcome-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.tour-modal-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: #4f46e5;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.15);
}

.tour-welcome-modal h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.tour-welcome-modal p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 32px;
}

.tour-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.tour-btn-skip,
.tour-btn-start,
.tour-btn-prev,
.tour-btn-next {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tour-btn-skip, .tour-btn-prev {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
}

.tour-btn-skip:hover, .tour-btn-prev:hover {
    background: #f8fafc;
    color: #475569;
    border-color: #cbd5e1;
}

.tour-btn-start, .tour-btn-next {
    background: #4f46e5;
    border: 1.5px solid #4f46e5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.tour-btn-start:hover, .tour-btn-next:hover {
    background: #4338ca;
    border-color: #4338ca;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

/* Tooltip Styles */
.tour-tooltip {
    position: absolute;
    background: var(--white);
    width: 320px;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.05);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.tour-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: tour-slide-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tour-slide-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.tour-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tour-tooltip-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.tour-tooltip-header span {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 20px;
}

.tour-tooltip p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.tour-tooltip-actions {
    display: flex;
    justify-content: space-between;
}

.tour-tooltip-actions button {
    padding: 8px 16px;
}

/* Highlight Active Element */
.tour-highlight {
    position: relative;
    z-index: 9999 !important;
    background: var(--white);
    border-radius: inherit;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 0 0 8px rgba(79, 70, 229, 0.3);
    animation: tour-pulse 2s infinite;
    pointer-events: none;
}

@keyframes tour-pulse {
    0% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 0 0 8px rgba(79, 70, 229, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 0 0 16px rgba(79, 70, 229, 0.1); }
    100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 1), 0 0 0 8px rgba(79, 70, 229, 0.3); }
}

/* ============================================
   GUIDE PAGE STYLES
   ============================================ */

.guide-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px 60px;
    animation: guidePageFadeIn 0.4s ease;
}

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

/* Hero */
.guide-page-hero {
    background: linear-gradient(135deg, #FFF1F3 0%, #FFF5F7 40%, #F0F4FF 100%);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    margin-bottom: 32px;
    border: 1px solid #FFE4E8;
    position: relative;
    overflow: hidden;
}

.guide-page-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 56, 92, 0.06);
}

.guide-page-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.06);
}

.guide-page-hero-content {
    position: relative;
    z-index: 1;
}

.guide-page-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.15);
}

.guide-page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px;
}

.guide-page-subtitle {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* Sections */
.guide-section {
    margin-bottom: 28px;
}

.guide-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.guide-section-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Guide Icon Color Variants */
.guide-icon-indigo { background: #EEF2FF; }
.guide-icon-indigo i { color: #6366F1; }
.guide-icon-amber { background: #FEF3C7; }
.guide-icon-amber i { color: #D97706; }
.guide-icon-green { background: #DCFCE7; }
.guide-icon-green i { color: #16A34A; }
.guide-icon-red { background: #FEE2E2; }
.guide-icon-red i { color: #EF4444; }
.guide-icon-purple { background: #F3E8FF; }
.guide-icon-purple i { color: #9333EA; }
.guide-icon-danger { background: #FEF2F2; }
.guide-icon-danger i { color: #DC2626; }
.guide-icon-sky { background: #E0F2FE; }
.guide-icon-sky i { color: #0284C7; }

.guide-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Checklist */
.guide-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-checklist-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 20px;
    transition: all 0.2s ease;
}

.guide-checklist-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.08);
    transform: translateY(-1px);
}

.guide-check-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF385C, #FF6B6B);
    color: white;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-check-content h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.guide-check-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Info Cards */
.guide-info-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.guide-info-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.65;
    margin: 0 0 20px;
}

/* Formula Box */
.guide-formula-box {
    background: linear-gradient(135deg, #F8FAFC, #F1F5F9);
    border: 1px dashed #CBD5E1;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    text-align: center;
}

.guide-formula-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.guide-formula-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
}

.guide-highlight {
    color: var(--primary);
    background: rgba(255, 56, 92, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Benchmarks */
.guide-benchmarks {
    margin-bottom: 20px;
}

.guide-benchmarks h4,
.guide-tips h4,
.guide-score-breakdown h4,
.guide-review-importance h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-benchmarks h4 i,
.guide-tips h4 i,
.guide-score-breakdown h4 i,
.guide-review-importance h4 i {
    color: var(--primary);
}

.guide-benchmark-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.guide-benchmark {
    padding: 14px 10px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid;
}

.guide-benchmark .bm-value {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 3px;
}

.guide-benchmark .bm-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
}

.guide-benchmark.poor { background: #FEF2F2; border-color: #FECACA; color: #DC2626; }
.guide-benchmark.avg { background: #FEF3C7; border-color: #FDE68A; color: #D97706; }
.guide-benchmark.good { background: #DCFCE7; border-color: #BBF7D0; color: #16A34A; }
.guide-benchmark.great { background: #EEF2FF; border-color: #C7D2FE; color: #6366F1; }

/* Tips */
.guide-tips {
    background: #FAFBFC;
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #F1F5F9;
}

.guide-tips ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-tips li {
    font-size: 13px;
    color: var(--text-gray);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.guide-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16A34A;
    font-weight: 700;
}

/* Score Breakdown */
.guide-score-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.guide-score-item {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.guide-score-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), #FF6B6B);
    border-radius: 4px 0 0 4px;
}

.guide-score-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #FF6B6B);
    border-radius: 4px;
    width: var(--score-width, 25%);
    margin-bottom: 10px;
}

.guide-score-quarter {
    width: 25%;
}

.guide-score-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.guide-score-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.guide-score-pts {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 56, 92, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
}

.guide-score-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Activity Grid */
.guide-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.guide-activity-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.guide-activity-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.08);
}

.guide-activity-card i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.guide-activity-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.guide-activity-card p {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

/* Review Stats */
.guide-review-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.guide-review-stat {
    background: linear-gradient(135deg, #FFF1F3, #FFF8F9);
    border: 1px solid #FFE4E8;
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
}

.guide-review-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 6px;
}

.guide-review-stat-label {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Warning Cards */
.guide-warning-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-warning-card {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.2s ease;
}

.guide-warning-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
}

.guide-warning-card > i {
    font-size: 20px;
    color: #DC2626;
    flex-shrink: 0;
    margin-top: 2px;
}

.guide-warning-card h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #991B1B;
}

.guide-warning-card p {
    margin: 0;
    font-size: 13px;
    color: #7F1D1D;
    line-height: 1.5;
    opacity: 0.85;
}

/* FAQ */
.guide-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guide-faq-item:hover {
    border-color: #CBD5E1;
}

.guide-faq-q {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.guide-faq-q span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.guide-faq-q i {
    color: var(--text-gray);
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.guide-faq-item.open .guide-faq-q i {
    transform: rotate(180deg);
}

.guide-faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.guide-faq-item.open .guide-faq-a {
    max-height: 200px;
    padding: 0 20px 16px;
}

/* CTA Section */
.guide-cta-card {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
}

.guide-cta-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 16px;
}

.guide-cta-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}

.guide-cta-card p {
    font-size: 14px;
    color: #94A3B8;
    margin: 0 0 24px;
    line-height: 1.5;
}

.guide-cta-btn {
    font-size: 14px !important;
    padding: 12px 28px !important;
    border-radius: 12px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .guide-page {
        padding: 0 12px 80px;
    }

    .guide-page-hero {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .guide-page-title {
        font-size: 22px;
    }

    .guide-page-subtitle {
        font-size: 13px;
    }

    .guide-section-title {
        font-size: 17px;
    }

    .guide-benchmark-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-activity-grid {
        grid-template-columns: 1fr;
    }

    .guide-review-stats {
        grid-template-columns: 1fr;
    }

    .guide-cta-card {
        padding: 28px 20px;
    }

    .guide-formula-text {
        font-size: 13px;
    }

    .guide-info-card {
        padding: 16px;
    }
}

.icon-danger-mr {
    color: #ef4444;
    margin-right: 6px;
}

.settings-category-hint {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

/* Campaign Group Sidebar & Search Styles */
/* Campaign Group Sidebar & Search Styles - WhatsApp Modern UI */
.chat-sidebar-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.chat-sidebar-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
}

.btn-create-group {
    background: #f1f5f9;
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #9333ea;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-create-group:hover {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.brand-chat-nav-tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    border-bottom: none;
    padding-bottom: 0;
}

.brand-chat-nav-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    outline: none;
    white-space: nowrap;
}

.brand-chat-nav-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.brand-chat-nav-btn.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
}

.groups-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}

.brand-chat-search-wrap {
    padding: 6px 0 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.btn-create-campaign-group {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #7c3aed !important;
    padding: 7px 14px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    white-space: nowrap !important;
}

.btn-create-campaign-group:hover {
    background: linear-gradient(135deg, #a855f7, #6366f1) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3) !important;
}

.btn-create-group-icon {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #8b5cf6 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.btn-create-group-icon:hover {
    background: linear-gradient(135deg, #a855f7, #6366f1) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3) !important;
}

.brand-chat-search-wrap {
    padding: 10px 0 14px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.brand-chat-search-inner {
    position: relative !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.brand-chat-search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    pointer-events: none !important;
}

.brand-chat-search-input-field {
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 10px 16px 10px 38px !important;
    color: #0f172a !important;
    font-size: 13px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) inset !important;
}

.brand-chat-search-input-field:focus {
    background: #ffffff !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15) !important;
}

/* Campaign Group Modals */
.cg-modal-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.7) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    z-index: 100000 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
}

.cg-modal-box {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 460px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35) !important;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.cg-modal-box-lg {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cg-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cg-modal-header-compact {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cg-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cg-modal-title-sm {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.cg-modal-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.cg-modal-close-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cg-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cg-modal-form {
    padding: 20px 24px;
}

.cg-privacy-note {
    background: #f3e8ff;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 12px;
    color: #6b21a8;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cg-privacy-note i {
    color: #9333ea;
    font-size: 14px;
    margin-top: 2px;
}

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

.cg-form-group-lg {
    margin-bottom: 20px;
}

.cg-form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.cg-form-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cg-form-input:focus {
    background: #ffffff;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.cg-form-textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    color: #0f172a;
    font-size: 13px;
    outline: none;
    resize: vertical;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cg-form-textarea:focus {
    background: #ffffff;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.cg-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.cg-btn-cancel {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cg-btn-cancel:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cg-btn-submit {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    border: none;
    color: white;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
    transition: all 0.2s ease;
}

.cg-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.35);
}

.cg-search-bar {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.cg-search-inner {
    position: relative;
    width: 100%;
}

.cg-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

.cg-search-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px 8px 34px;
    color: #0f172a;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.cg-search-input:focus {
    border-color: #a855f7;
}

.cg-checkbox-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}

.cg-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cg-selected-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.cg-icon-purple {
    color: #a855f7;
}

.cg-required-star {
    color: #ef4444;
}

/* Screen Search Bar Visibility Rules */
body.screen-messages .search-bar,
body.screen-messages .header-center,
body.screen-contracts .search-bar,
body.screen-contracts .header-center {
    display: none !important;
}

body.screen-explore .search-bar,
body.screen-explore .header-center,
body.screen-saved .search-bar,
body.screen-saved .header-center {
    display: flex !important;
}

.chat-sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.chat-sidebar-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}

.brand-chat-search-wrap {
    padding: 10px 0 14px 0;
    width: 100%;
    box-sizing: border-box;
}

.brand-chat-search-inner {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.brand-chat-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
    z-index: 2;
}

.brand-chat-search-input-field {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 10px 16px 10px 38px;
    color: #0f172a;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}

/* --- Abhishek Verma Test Mode Control Panel --- */
.abhishek-test-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.08));
    border: 1.5px dashed rgba(99, 102, 241, 0.4);
    border-radius: 16px;
    padding: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.test-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.test-panel-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.test-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.test-preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.test-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}
.test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.test-btn-tier0 { border-color: #fca5a5; color: #dc2626; background: #fff5f5; }
.test-btn-tier0:hover { background: #fee2e2; }
.test-btn-normal { border-color: #93c5fd; color: #2563eb; background: #eff6ff; }
.test-btn-normal:hover { background: #dbeafe; }
.test-btn-macro { border-color: #d8b4fe; color: #7c3aed; background: #faf5ff; }
.test-btn-macro:hover { background: #f3e8ff; }
.test-custom-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.test-step-btn {
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}
.test-step-btn:hover { background: #f8fafc; }
.test-input {
    width: 120px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    outline: none;
}
.test-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.test-apply-btn {
    padding: 8px 16px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.test-apply-btn:hover { background: #1e293b; }




