/* ========== IMPORTS & RESET ========== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #818CF8;
    --gradient: linear-gradient(135deg, #4F46E5, #7C3AED);
    --bg: #F9FAFB;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --sidebar-width: 250px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
    background: var(--bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; }

/* ========== UTILITY ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

/* ========== NAVBAR (PUBLIC) ========== */
.navbar {
    background: var(--white);
    padding: 16px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar .nav-links a {
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.3s;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 3px;
    transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
    background: var(--gradient);
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero .btn {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    padding: 14px 36px;
    font-size: 1rem;
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ========== SERVICE CARDS (LANDING) ========== */
.services-section {
    padding: 80px 0;
    text-align: center;
}

.services-section h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.services-section .subtitle {
    color: var(--gray-500);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card .icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.service-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ========== MODERN SERVICE CARDS ========== */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.svc-card-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 24px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.svc-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.35s;
}

.svc-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: transparent;
}

.svc-card-modern:hover::before {
    opacity: 1;
}

.svc-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform 0.3s;
}

.svc-card-icon svg {
    width: 26px;
    height: 26px;
}

.svc-card-modern:hover .svc-card-icon {
    transform: scale(1.1);
}

.svc-card-modern h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.svc-card-modern p {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
    flex: 1;
}

.svc-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 1rem;
    margin-top: 16px;
    align-self: flex-end;
    transition: all 0.3s;
}

.svc-card-modern:hover .svc-card-arrow {
    transform: translateX(4px);
}

/* Instagram */
.instagram-card .svc-card-icon { background: linear-gradient(135deg, #F56040, #C13584, #833AB4); color: #fff; }
.instagram-card::before { background: linear-gradient(90deg, #F56040, #C13584, #833AB4); }
.instagram-card:hover .svc-card-arrow { background: #C13584; color: #fff; }

/* Twitter / X */
.twitter-card .svc-card-icon { background: #0F1419; color: #fff; }
.twitter-card::before { background: #0F1419; }
.twitter-card:hover .svc-card-arrow { background: #0F1419; color: #fff; }

/* YouTube */
.youtube-card .svc-card-icon { background: #FF0000; color: #fff; }
.youtube-card::before { background: linear-gradient(90deg, #FF0000, #CC0000); }
.youtube-card:hover .svc-card-arrow { background: #FF0000; color: #fff; }

/* Facebook */
.facebook-card .svc-card-icon { background: #1877F2; color: #fff; }
.facebook-card::before { background: #1877F2; }
.facebook-card:hover .svc-card-arrow { background: #1877F2; color: #fff; }

/* Telegram */
.telegram-card .svc-card-icon { background: #2AABEE; color: #fff; }
.telegram-card::before { background: linear-gradient(90deg, #2AABEE, #229ED9); }
.telegram-card:hover .svc-card-arrow { background: #2AABEE; color: #fff; }

/* Snapchat */
.snapchat-card .svc-card-icon { background: #FFFC00; color: #000; }
.snapchat-card::before { background: #FFFC00; }
.snapchat-card:hover .svc-card-arrow { background: #FFFC00; color: #000; }

/* LinkedIn */
.linkedin-card .svc-card-icon { background: #0A66C2; color: #fff; }
.linkedin-card::before { background: #0A66C2; }
.linkedin-card:hover .svc-card-arrow { background: #0A66C2; color: #fff; }

/* Spotify */
.spotify-card .svc-card-icon { background: #1DB954; color: #fff; }
.spotify-card::before { background: #1DB954; }
.spotify-card:hover .svc-card-arrow { background: #1DB954; color: #fff; }

/* Responsive modern cards */
@media (max-width: 768px) {
    .services-grid-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .svc-card-modern {
        padding: 20px 16px 18px;
    }

    .svc-card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .svc-card-icon svg {
        width: 22px;
        height: 22px;
    }

    .svc-card-modern h3 {
        font-size: 0.92rem;
    }

    .svc-card-modern p {
        font-size: 0.75rem;
    }

    .svc-card-arrow {
        width: 28px;
        height: 28px;
        margin-top: 10px;
    }
}

@media (max-width: 380px) {
    .services-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: var(--gray-400);
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--gray-700);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ========== AUTH FORMS ========== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 40px 20px;
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.auth-card .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-card .btn {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
}

.auth-card .auth-link {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.auth-card .auth-link a {
    color: var(--primary);
    font-weight: 600;
}

/* Alert messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-wrapper {
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background: var(--gray-900);
    color: var(--white);
    padding: 30px 0;
    position: fixed;
    width: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 0 24px;
    margin-bottom: 40px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    color: var(--gray-400);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary-light);
}

.sidebar-nav a .icon {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px 40px;
    background: var(--bg);
    min-height: 100vh;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.main-header h1 {
    font-size: 1.6rem;
    color: var(--gray-900);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-card .stat-icon {
    float: right;
    font-size: 2rem;
    opacity: 0.15;
}

/* Info Card */
.info-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.info-row:last-child { border: none; }

.info-row .label {
    width: 140px;
    font-weight: 500;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.info-row .value {
    color: var(--gray-800);
    font-size: 0.9rem;
}

/* ========== SERVICES FORM ========== */
.order-form-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
}

.order-form-card h3 {
    font-size: 1.2rem;
    color: var(--gray-900);
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.step {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 4px;
    transition: background 0.3s;
}

.step.active {
    background: var(--primary);
}

/* ========== ORDERS TABLE ========== */
.orders-table-wrapper {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: var(--gray-50);
}

.orders-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
}

.orders-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.orders-table tr:hover {
    background: var(--gray-50);
}

.orders-table .link-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge-processing {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-completed {
    background: #D1FAE5;
    color: #065F46;
}

.badge-error, .badge-failed {
    background: #FEE2E2;
    color: #991B1B;
}

/* ========== LOADING SPINNER ========== */
.spinner-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.spinner-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 10px;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    max-width: 360px;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }

/* ========== PLATFORM HERO (service.php) ========== */
.platform-hero {
    border-radius: var(--radius);
    padding: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.platform-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

.platform-hero-back {
    display: inline-block;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
}

.platform-hero-back:hover {
    color: #fff;
}

.platform-hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.platform-hero-icon svg {
    width: 28px;
    height: 28px;
}

.platform-hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.platform-hero p {
    font-size: 0.9rem;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

.platform-hero-balance {
    position: absolute;
    top: 28px;
    right: 32px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    z-index: 1;
}

/* ========== SERVICE CARD ITEMS (service.php) ========== */
.service-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 18px 22px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-card-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.service-card-item.selected {
    border-color: var(--primary);
    background: #F0F0FF;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.service-card-item-left {
    flex: 1;
    min-width: 0;
}

.service-card-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--gray-400);
}

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gray-300);
}

.service-card-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    white-space: nowrap;
    margin-left: 16px;
}

.service-card-item-price small {
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--gray-400);
}

/* Platform hero responsive */
@media (max-width: 600px) {
    .platform-hero {
        padding: 20px;
    }

    .platform-hero h1 {
        font-size: 1.2rem;
    }

    .platform-hero-balance {
        position: static;
        margin-top: 12px;
        display: inline-block;
    }

    .service-card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .service-card-item-price {
        margin-left: 0;
    }
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* No orders message */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    /* Navbar */
    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        gap: 15px !important;
    }

    .nav-links.open {
        display: flex !important;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2rem; }

    /* Service cards */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Dashboard */
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px;
        padding-top: 60px;
    }

    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Auth */
    .auth-card {
        padding: 28px 20px;
    }

    /* Order form */
    .order-form-card {
        padding: 24px 18px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.95rem; }
    .services-section h2 { font-size: 1.5rem; }
}

/* ===== Platform Accordion ===== */
.platform-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-acc-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.platform-acc-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.platform-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--gray-50);
    user-select: none;
    transition: background 0.2s;
}

.platform-acc-header:hover {
    background: var(--gray-100);
}

.platform-acc-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.platform-acc-left h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.platform-acc-left .service-count {
    font-size: 0.78rem;
    color: var(--gray-400);
}

.platform-acc-arrow {
    font-size: 0.75rem;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}

.platform-acc-item.open .platform-acc-arrow {
    transform: rotate(180deg);
}

.platform-acc-body {
    display: none;
    border-top: 1px solid var(--gray-200);
    padding: 16px 20px;
}

.platform-acc-item.open .platform-acc-body {
    display: block;
}

.platform-acc-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: #fff;
    color: var(--gray-800);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    appearance: auto;
}

.platform-acc-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

@media (max-width: 600px) {
    .platform-acc-header {
        padding: 14px 16px;
    }

    .platform-acc-select {
        font-size: 0.88rem;
        padding: 10px 14px;
    }
}
