/* 
   ActiveSocial - Premium CSS
   Theme: High-end SaaS, Dark Mode First
*/

:root {
    /* Colors - Dark Mode (Default) */
    --bg-body: #0a0a0c;
    --bg-card: #131316;
    --bg-card-hover: #1c1c21;
    --bg-sidebar: #0f0f12;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-primary: #f97316;
    /* Orange 500 */
    --accent-blue: #3b82f6;
    /* Blue 500 */
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-blue) 100%);
    --accent-primary-hover: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.4);
    --accent-blue-glow: rgba(59, 130, 246, 0.4);

    --accent-secondary: #facc15;
    /* Amber 400 */

    --border-color: #27272a;
    --border-hover: #3f3f46;

    --danger: #ef4444;
    --success: #22c55e;

    /* Typography */
    --font-heading: 'Della Respira', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --container-width: 1200px;
    --header-height: 70px;
}

[data-theme="light"] {
    --bg-body: #f4f4f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-sidebar: #ffffff;

    --text-primary: #09090b;
    --text-secondary: #52525b;
    --text-muted: #71717a;

    --border-color: #e4e4e7;
    --border-hover: #d4d4d8;

    --accent-glow: rgba(249, 115, 22, 0.1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .text-gradient {
    background-image: linear-gradient(135deg, #f97316 0%, #facc15 100%);
}

.text-muted {
    color: var(--text-muted);
}

.text-danger {
    color: var(--danger) !important;
}

.text-success {
    color: var(--success) !important;
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2), 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3), 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .btn-secondary {
    background: white;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Layout: Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.sidebar-header .logo img {
    height: 35px;
}

.mobile-topbar-logo img {
    height: 32px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.desktop-nav a {
    margin: 0 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.desktop-nav a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 80px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

/* Stats */
.stats-row {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 30px 50px;
    border-radius: var(--radius-lg);
    gap: 40px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-separator {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

/* SPA Views */
.view {
    display: none;
    min-height: 100vh;
}

.view-active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Dashboard Layout */
/* Dashboard Layout Refactor */
.dashboard-layout {
    display: flex;
    height: 100vh;
    background: var(--bg-body);
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.sidebar-header .logo {
    font-size: 1.25rem;
}

.mobile-close-btn {
    display: none;
    color: var(--text-secondary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.nav-group {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 5px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.nav-item i {
    width: 20px;
    height: 20px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.05); /* Soft highlight */
    color: var(--text-primary);
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-image: linear-gradient(to bottom, var(--accent-primary), var(--accent-blue)) 1;
}

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

.dashboard-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dash-topbar {
    height: 80px;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    flex-shrink: 0;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    gap: 10px;
    width: 300px;
}

.search-bar i {
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.mobile-topbar-logo {
    display: none;
}

.topbar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.topbar-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-info .name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-info .status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.avatar {
    width: 44px;
    height: 44px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    padding-bottom: 100px;
    /* Space for mobile nav */
}

/* Welcome Banner */
.welcome-banner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 20px;
}

.welcome-banner h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.welcome-banner p {
    color: var(--text-secondary);
}

.local-time {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
}

.time-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.time-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

/* Quick Actions Grid */
.section-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
    background: var(--bg-card-hover);
}

.icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.action-card:hover .icon-wrap {
    background: var(--accent-gradient);
    color: white;
}

.action-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Reusing dashes views */
.dash-view {
    display: none;
}

.dash-view.dash-active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.dash-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
}

/* Dashboard Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-primary);
}

.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stat-card .value {
    font-size: 1.5rem;
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Platform Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--border-hover);
}

.p-card-header {
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-card-header i {
    font-size: 3rem;
    color: white;
    z-index: 1;
}

.p-card-header::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.8;
}

.platform-ig .p-card-header {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.platform-tt .p-card-header {
    background: black;
}

.platform-yt .p-card-header {
    background: #ff0000;
}

.platform-tw .p-card-header {
    background: #1da1f2;
}

.p-card-body {
    padding: 20px;
}

.p-card-body h3 {
    margin-bottom: 8px;
}

.p-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 10px 0;
    display: block;
}

.p-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SMS View */
.sms-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

.sms-selector h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    outline: none;
    transition: 0.2s;
}

[data-theme="light"] .form-control {
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--accent-primary);
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-body);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

[data-theme="light"] .price-display {
    background: #fdf2f8;
    /* Very light pink to match accent-secondary */
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.price-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.sms-console {
    display: flex;
    flex-direction: column;
    height: 500px;
    padding: 0;
}

.console-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
}

.console-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.02),
            rgba(0, 0, 0, 0.02) 10px,
            transparent 10px,
            transparent 20px);
}

[data-theme="light"] .console-body {
    background: #f8fafc;
}

.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.empty-state i {
    margin-bottom: 15px;
    font-size: 48px;
    opacity: 0.3;
}

.sms-message {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-primary);
    animation: slideIn 0.3s ease;
}

[data-theme="light"] .sms-message {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.msg-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

/* Wallet Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
}

.table th {
    text-align: left;
    padding: 16px 20px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: var(--bg-card-hover);
}

@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table th,
    .table td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* Landing Page Sections common styles */
.section-padding {
    padding: 100px 0;
}

.bg-muted {
    background-color: var(--bg-card);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin: 20px 0 12px;
}

/* Services Layout */
.services-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.service-detail-card {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px;
}

.service-detail-card.reverse {
    flex-direction: row-reverse;
}

.service-icon {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-icon i {
    width: 60px;
    height: 60px;
}

.service-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-list {
    margin-bottom: 30px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.service-list i {
    color: var(--success);
    width: 18px;
    height: 18px;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.step-item {
    position: relative;
    padding: 20px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.1;
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

.step-item h3 {
    margin-top: 20px;
    margin-bottom: 12px;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.review-stars {
    color: #fbbf24;
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.review-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-primary);
}

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

.avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* Mobile */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-actions,
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .user-profile-summary {
        display: none;
    }

    .sms-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-body);
    padding: 20px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-overlay a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.auth-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.forgot-password {
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Mobile Dashboard Improvements */
.mobile-dash-header {
    display: none;
    padding: 10px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1001;
    /* Higher than sidebar overlay if needed, or matched */
    gap: 15px;
}

.mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-mobile-nav {
    display: none;
    background: rgba(19, 19, 22, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

[data-theme="light"] .dash-mobile-nav {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dash-mobile-nav .nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.dash-mobile-nav .nav-container::-webkit-scrollbar {
    display: none;
}

.dash-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
}

.dash-mobile-nav a i {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.dash-mobile-nav a.active {
    background: transparent;
    color: var(--accent-primary);
}

.dash-mobile-nav a.active i {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .dash-mobile-nav {
        display: block;
    }
}

.mobile-dash-header .logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
}

/* Sidebar Mobile Overrides */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .mobile-dash-header {
        display: flex;
    }

    .mobile-topbar-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 1.2rem;
        color: var(--text-primary);
        text-decoration: none;
    }

    .mobile-topbar-logo .logo-icon {
        color: var(--accent-primary);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dash-topbar {
        padding: 0 15px;
        height: 70px;
        position: sticky;
        top: 0;
        z-index: 997;
    }

    .topbar-left .search-bar,
    .topbar-right .user-info {
        display: none !important;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Overlay for sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .dashboard-main {
        padding: 20px 20px 90px 20px;
        /* added bottom padding to clear nav */
        width: 100%;
    }

    /* Hide desktop header actions on mobile if they take too much space, 
       or style them to fit */
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dash-header .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    /* Grid layout for mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 10px;
    }

    .stat-card .icon-box {
        margin: 0 auto;
    }

    .stat-card .value {
        font-size: 1.25rem;
    }

    .stat-card .label {
        font-size: 0.8rem;
    }

    .platform-card .p-card-header {
        height: 80px;
    }

    .platform-card .p-card-header i {
        font-size: 2rem;
    }

    .platform-card .p-card-body {
        padding: 12px;
    }

    .platform-card h3 {
        font-size: 0.95rem;
    }

    .platform-card .p-price {
        font-size: 1rem;
    }

    .sms-layout {
        grid-template-columns: 1fr;
    }
}

/* Base Styles fix for overflow */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.checkbox-label a {
    color: var(--accent-primary);
}

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); width: 100%; max-width: 400px; transform: translateY(20px); transition: transform 0.3s ease; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { margin: 0; font-size: 1.25rem; font-family: var(--font-heading); }
.modal-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center; transition: color 0.2s; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 24px; }
.empty-state { text-align: center; padding: 30px 10px; background: var(--bg-body); border-radius: var(--radius-md); border: 1px dashed var(--border-color); display: flex; flex-direction: column; align-items: center; justify-content: center; }


/* Payment Gateways */
.gateway-options { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 20px; }
.gateway-card { border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--bg-card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.gateway-card:hover { border-color: var(--accent-primary); background: var(--bg-card-hover); }
.gateway-card.selected { border-width: 2px; border-color: var(--accent-primary); background: rgba(249, 115, 22, 0.05); }
.gateway-card img { max-width: 140px; height: 40px; object-fit: contain; filter: grayscale(1); opacity: 0.5; transition: all 0.3s ease; }
.gateway-card.selected img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }
.gateway-card span { display: block; font-size: 1rem; font-weight: 600; color: var(--text-secondary); transition: all 0.2s; }
.gateway-card.selected span { color: var(--text-primary); }


/* Fix for Home Page Premium Services Mobile Layout */
@media (max-width: 768px) {
    .services-layout { display: flex; flex-direction: column; gap: 20px; }
    .service-detail-card { flex-direction: column; text-align: center; }
    .service-detail-card .service-icon { margin: 0 auto; }
    .service-detail-card.reverse { flex-direction: column; }
}


/* Restore Theme Toggle on Mobile Home Page */
@media (max-width: 768px) {
    .nav-actions { display: flex !important; margin-right: 15px; }
    .nav-actions .btn { display: none !important; }
    #mobile-menu-toggle { margin-left: 0; }
}

/* Custom Dropdown Overrides for Follower Dashboard */
select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.order-card .form-control {
    background-color: var(--bg-body) !important;
}

[data-theme="light"] select option {
    background-color: #ffffff;
    color: #000000;
}

