/**
 * Dental Scotland Core - Public Styles (Affiliate Dashboard)
 * Premium Modern Design
 */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Variables - Dental Scotland Brand Colors */
:root {
    /* Primary Brand Colors */
    --ds-primary: #00b4d8;
    /* Dental Scotland Cyan */
    --ds-primary-dark: #0096c7;
    --ds-primary-light: #48cae4;
    --ds-navy: #1a2744;
    /* Dental Scotland Navy */
    --ds-navy-light: #2a3a5c;
    --ds-navy-dark: #111827;

    /* Status Colors */
    --ds-success: #10b981;
    --ds-success-dark: #059669;
    --ds-success-light: #34d399;
    --ds-warning: #f59e0b;
    --ds-warning-light: #fbbf24;
    --ds-error: #ef4444;

    /* Neutral Colors */
    --ds-gray-50: #f9fafb;
    --ds-gray-100: #f3f4f6;
    --ds-gray-200: #e5e7eb;
    --ds-gray-300: #d1d5db;
    --ds-gray-400: #9ca3af;
    --ds-gray-500: #6b7280;
    --ds-gray-600: #4b5563;
    --ds-gray-700: #374151;
    --ds-gray-800: #1f2937;
    --ds-gray-900: #111827;

    /* Gradients */
    --ds-gradient-primary: linear-gradient(135deg, #00b4d8 0%, #48cae4 100%);
    --ds-gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --ds-gradient-navy: linear-gradient(135deg, #1a2744 0%, #2a3a5c 100%);
    --ds-gradient-dark: linear-gradient(135deg, #1f2937 0%, #374151 100%);

    /* Shadows */
    --ds-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ds-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --ds-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --ds-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --ds-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Dashboard Layout System (Admin Portal)
   ======================================== */

/* Full-page dashboard body */
.ds-dashboard-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ds-gray-100);
    min-height: 100vh;
}

/* Main Layout Container - Sidebar + Content */
.ds-dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.ds-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--ds-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.ds-sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ds-logo-img {
    max-height: 32px;
    width: auto;
}

/* Navigation */
.ds-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex: 1;
}

.ds-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.ds-nav-link:hover,
.ds-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ds-nav-link.active {
    border-left: 3px solid var(--ds-primary);
}

.ds-nav-link.logout {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.5);
}

.ds-nav-spacer {
    flex: 1;
}

.ds-badge-count {
    background: var(--ds-error);
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Main Content Area */
.ds-main-content {
    flex: 1;
    margin-left: 260px;
    padding: 0;
    background: var(--ds-gray-50);
    min-height: 100vh;
}

.ds-main-header {
    background: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--ds-gray-200);
}

.ds-page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ds-gray-900);
    margin: 0;
}

.ds-content-wrapper {
    padding: 1.5rem;
}

/* Stats Grid */
.ds-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ds-stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--ds-shadow);
}

.ds-stat-label {
    font-size: 0.75rem;
    color: var(--ds-gray-500);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ds-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ds-gray-900);
}

.ds-link-small {
    font-size: 0.7rem;
    color: var(--ds-primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.25rem;
}

/* Nav Divider */
.ds-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1rem;
}

/* Tables */
.ds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.ds-table th,
.ds-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--ds-gray-200);
}

.ds-table th {
    background: var(--ds-gray-50);
    font-weight: 600;
    color: var(--ds-gray-600);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ds-table tbody tr:hover {
    background: var(--ds-gray-50);
}

/* Buttons */
.ds-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ds-btn-primary {
    background: var(--ds-primary);
    color: #fff;
}

.ds-btn-primary:hover {
    background: var(--ds-primary-dark);
}

.ds-btn-secondary {
    background: var(--ds-gray-200);
    color: var(--ds-gray-700);
}

.ds-btn-secondary:hover {
    background: var(--ds-gray-300);
}

/* Cards */
.ds-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--ds-shadow);
    overflow: hidden;
}

/* Badges */
.ds-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .ds-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .ds-main-content {
        margin-left: 0;
    }

    .ds-dashboard-layout {
        flex-direction: column;
    }
}

/* Dashboard Container */
.ds-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ds-gray-50);
    min-height: 100vh;
}

/* Branded Header Bar */
.ds-brand-header {
    background: var(--ds-gradient-navy);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.ds-brand-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ds-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.ds-logo-main {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.ds-logo-sub {
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-primary);
    letter-spacing: 3px;
}

.ds-brand-divider {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

.ds-brand-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ds-gray-300);
}

.ds-brand-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ds-user-greeting {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.ds-logout-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.ds-logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Header */
.ds-dashboard-header {
    margin: 0 24px 32px;
    padding: 32px 0 24px;
    border-bottom: 1px solid var(--ds-gray-200);
}

.ds-dashboard-header h2 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 800;
    color: var(--ds-gray-900);
    letter-spacing: -0.5px;
}

.ds-subtitle {
    margin: 0;
    color: var(--ds-gray-500);
    font-size: 16px;
}

/* Stats Row */
.ds-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.ds-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--ds-shadow);
    border: 1px solid var(--ds-gray-100);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ds-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ds-shadow-lg);
}

.ds-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ds-gray-300);
}

.ds-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    background: var(--ds-gray-100);
}

.ds-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--ds-gray-900);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.ds-stat-label {
    color: var(--ds-gray-500);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ds-stat-card.ds-stat-total::before {
    background: var(--ds-gradient-dark);
}

.ds-stat-card.ds-stat-total .ds-stat-icon {
    background: var(--ds-gray-900);
    color: #fff;
}

.ds-stat-card.ds-stat-success::before {
    background: var(--ds-gradient-success);
}

.ds-stat-card.ds-stat-success .ds-stat-icon {
    background: var(--ds-success);
    color: #fff;
}

.ds-stat-card.ds-stat-primary::before {
    background: var(--ds-gradient-primary);
}

.ds-stat-card.ds-stat-primary .ds-stat-icon {
    background: var(--ds-primary);
    color: #fff;
}

.ds-stat-card.ds-stat-warning::before {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.ds-stat-card.ds-stat-warning .ds-stat-icon {
    background: var(--ds-warning);
    color: #fff;
}

/* Two Column Layout */
.ds-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    margin-bottom: 32px;
}

/* Section Cards */
.ds-section-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--ds-shadow);
    border: 1px solid var(--ds-gray-100);
}

.ds-section-title {
    margin: 0 0 24px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ds-gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.ds-section-title svg,
.ds-section-title .ds-icon {
    width: 24px;
    height: 24px;
    color: var(--ds-primary);
}

/* Referral Section */
.ds-referral-link-box {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.ds-referral-link-box input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--ds-gray-200);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: var(--ds-gray-50);
    color: var(--ds-gray-700);
    transition: border-color 0.2s;
}

.ds-referral-link-box input:focus {
    outline: none;
    border-color: var(--ds-primary);
    background: #fff;
}

/* QR Section */
.ds-qr-section {
    text-align: center;
    padding: 24px;
    background: var(--ds-gray-50);
    border-radius: 12px;
    border: 2px dashed var(--ds-gray-200);
}

.ds-qr-code {
    display: block;
    margin: 16px auto;
    border-radius: 12px;
    box-shadow: var(--ds-shadow-md);
    padding: 12px;
    background: #fff;
}

.ds-referral-code {
    margin: 16px 0 0;
    font-size: 18px;
    color: var(--ds-gray-600);
}

.ds-referral-code strong {
    font-size: 24px;
    font-weight: 700;
    color: var(--ds-primary);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Buttons */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ds-btn-primary {
    background: var(--ds-gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.ds-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.ds-btn-success {
    background: var(--ds-gradient-success);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

.ds-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
}

.ds-btn-outline {
    background: transparent;
    color: var(--ds-primary);
    border: 2px solid var(--ds-primary);
}

.ds-btn-outline:hover {
    background: var(--ds-primary);
    color: #fff;
}

/* Withdrawal Card */
.ds-withdrawal-card {
    background: var(--ds-gradient-success);
    border-radius: 16px;
    padding: 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ds-withdrawal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ds-withdrawal-card h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 1px;
}

.ds-withdrawal-amount {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.ds-withdrawal-card .ds-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}

.ds-withdrawal-card .ds-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Alerts */
.ds-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.ds-alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.ds-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.ds-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Table */
.ds-table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--ds-gray-200);
}

.ds-table {
    width: 100%;
    border-collapse: collapse;
}

.ds-table th,
.ds-table td {
    padding: 16px 20px;
    text-align: left;
}

.ds-table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ds-gray-500);
    background: var(--ds-gray-50);
    border-bottom: 1px solid var(--ds-gray-200);
}

.ds-table td {
    font-size: 14px;
    color: var(--ds-gray-700);
    border-bottom: 1px solid var(--ds-gray-100);
}

.ds-table tbody tr {
    transition: background 0.2s;
}

.ds-table tbody tr:last-child td {
    border-bottom: none;
}

.ds-table tbody tr:hover {
    background: var(--ds-gray-50);
}

.ds-patient-name {
    font-weight: 600;
    color: var(--ds-gray-900);
}

.ds-patient-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ds-gradient-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
}

/* Status Badges */
.ds-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.ds-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ds-status-treated {
    background: #d1fae5;
    color: #065f46;
}

.ds-status-treated::before {
    background: #10b981;
}

.ds-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.ds-status-pending::before {
    background: #f59e0b;
}

.ds-status-contacted {
    background: #dbeafe;
    color: #1e40af;
}

.ds-status-contacted::before {
    background: #3b82f6;
}

.ds-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.ds-status-cancelled::before {
    background: #ef4444;
}

/* Empty State */
.ds-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.ds-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.ds-empty-state h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--ds-gray-700);
}

.ds-empty-state p {
    color: var(--ds-gray-500);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .ds-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ds-dashboard {
        padding: 20px 16px;
    }

    .ds-dashboard-header h2 {
        font-size: 24px;
    }

    .ds-stat-value {
        font-size: 28px;
    }

    .ds-referral-link-box {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ds-stats-row {
        grid-template-columns: 1fr;
    }

    .ds-table th,
    .ds-table td {
        padding: 12px;
    }
}

/* Bank Status Styles */
.ds-bank-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.ds-bank-connected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ds-bank-pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ds-bank-status .ds-status-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ds-bank-status strong {
    display: block;
    color: var(--ds-gray-800);
    font-weight: 600;
}

.ds-btn-secondary {
    background: var(--ds-gray-100);
    color: var(--ds-gray-700);
    border: 1px solid var(--ds-gray-300);
}

.ds-btn-secondary:hover {
    background: var(--ds-gray-200);
}

.ds-btn-success {
    background: var(--ds-gradient-success);
    color: white;
    border: none;
}

.ds-btn-success:hover {
    filter: brightness(1.1);
}

.ds-btn-large {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    margin-top: 16px;
}

/* Security Badge */
.ds-security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    font-size: 12px;
    color: var(--ds-primary);
    margin-bottom: 16px;
}

.ds-security-icon {
    font-size: 14px;
}

/* Payout Options */
.ds-payout-options {
    margin: 20px 0;
}

.ds-payout-options h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-gray-700);
    margin: 0 0 12px 0;
}

.ds-payout-option {
    display: block;
    padding: 14px;
    border: 2px solid var(--ds-gray-200);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ds-payout-option:hover {
    border-color: var(--ds-primary-light);
    background: rgba(99, 102, 241, 0.03);
}

.ds-payout-option.ds-option-selected {
    border-color: var(--ds-primary);
    background: rgba(99, 102, 241, 0.06);
}

.ds-payout-option input[type="radio"] {
    display: none;
}

.ds-option-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ds-option-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.ds-option-content strong {
    display: block;
    color: var(--ds-gray-800);
    font-size: 14px;
    margin-bottom: 2px;
}

.ds-option-content p {
    margin: 0;
    font-size: 12px;
    color: var(--ds-gray-500);
}

/* Payout Actions */
.ds-payout-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* Connect Options (Not Connected) */
.ds-connect-options {
    margin: 20px 0;
}

.ds-connect-options h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-gray-700);
    margin: 0 0 12px 0;
}

.ds-method-card {
    padding: 14px;
    background: var(--ds-gray-50);
    border: 1px solid var(--ds-gray-200);
    border-radius: 10px;
    margin-bottom: 10px;
}

.ds-method-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.ds-method-icon {
    font-size: 20px;
}

.ds-method-header strong {
    font-size: 14px;
    color: var(--ds-gray-800);
}

.ds-method-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--ds-gray-200);
    color: var(--ds-gray-600);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-left: 6px;
}

.ds-badge-fast {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.ds-method-card p {
    margin: 0;
    font-size: 12px;
    color: var(--ds-gray-500);
}

.ds-method-note {
    font-size: 11px;
    color: var(--ds-gray-400);
    font-style: italic;
    margin: 12px 0 0 0;
}

/* ============================================
   SIDEBAR DASHBOARD LAYOUT
   ============================================ */

/* Main Layout */
.ds-sidebar-layout {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
    background: var(--ds-gray-100);
}

/* Mobile Menu Toggle */
.ds-mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: var(--ds-navy);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.ds-mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

/* Sidebar */
.ds-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--ds-gray-900);
    border-right: 1px solid var(--ds-gray-200);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Profile Section */
.ds-profile-section {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--ds-gray-200);
}

.ds-profile-avatar {
    margin-bottom: 12px;
}

.ds-profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--ds-primary);
}

.ds-profile-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ds-navy);
}

.ds-profile-email {
    margin: 0;
    font-size: 12px;
    color: var(--ds-gray-500);
    word-break: break-word;
}

.ds-profile-joined {
    margin: 8px 0 0;
    font-size: 11px;
    color: var(--ds-gray-400);
}

/* Navigation Tabs */
.ds-nav-tabs {
    flex: 1;
    padding: 16px 0;
}

.ds-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--ds-gray-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.ds-nav-link:hover {
    background: var(--ds-gray-50);
    color: var(--ds-primary) !important;
}

.ds-nav-link.active {
    background: var(--ds-primary-light);
    background: rgba(0, 180, 216, 0.1);
    color: var(--ds-primary);
    border-left-color: var(--ds-primary);
}

.ds-nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Sidebar Footer */
.ds-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--ds-gray-200);
}

.ds-logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--ds-error);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.2s;
}

.ds-logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Main Content */
.ds-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Content Header */
.ds-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid var(--ds-gray-200);
    gap: 16px;
    flex-wrap: wrap;
}

.ds-header-left .ds-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.ds-header-left .ds-logo-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--ds-navy);
    letter-spacing: 2px;
}

.ds-header-left .ds-logo-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--ds-primary);
    letter-spacing: 2px;
}

.ds-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ds-campaign-url .ds-label {
    font-size: 11px;
    color: var(--ds-gray-500);
    display: block;
    margin-bottom: 4px;
}

.ds-url-box {
    display: flex;
    align-items: center;
    background: var(--ds-gray-100);
    border-radius: 6px;
    overflow: hidden;
}

.ds-url-box input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 12px;
    width: 220px;
    color: var(--ds-gray-600);
}

.ds-url-box .ds-copy-btn {
    padding: 8px 12px;
    background: var(--ds-primary);
    border: none;
    color: #fff;
    cursor: pointer;
}

.ds-ambassador-badge {
    background: var(--ds-gradient-navy);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Tab Content */
.ds-tab-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* Panel */
.ds-panel {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--ds-shadow);
}

.ds-panel-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--ds-navy);
}

.ds-panel-subtitle {
    margin: 0 0 24px;
    color: var(--ds-gray-500);
    font-size: 14px;
}

/* Quick Stats Grid */
.ds-quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.ds-quick-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--ds-gray-50);
    border-radius: 10px;
    border-left: 4px solid var(--ds-gray-300);
}

.ds-quick-stat.ds-stat-earned {
    border-left-color: var(--ds-success);
}

.ds-quick-stat.ds-stat-pending {
    border-left-color: var(--ds-warning);
}

.ds-quick-stat.ds-stat-unpaid {
    border-left-color: var(--ds-primary);
}

.ds-quick-stat.ds-stat-paid {
    border-left-color: #10b981;
}

.ds-quick-stat.ds-stat-cash {
    border-left-color: #f59e0b;
}

.ds-quick-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-quick-content {
    flex: 1;
}

.ds-quick-label {
    display: block;
    font-size: 12px;
    color: var(--ds-gray-500);
    margin-bottom: 4px;
}

.ds-quick-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--ds-navy);
}

/* Ambassador Section */
.ds-ambassador-section {
    padding: 24px;
    background: var(--ds-gray-50);
    border-radius: 12px;
}

.ds-ambassador-section h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--ds-navy);
}

.ds-ambassador-section>p {
    color: var(--ds-gray-600);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ds-referral-box {
    margin-bottom: 20px;
}

.ds-referral-box label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ds-navy);
    margin-bottom: 8px;
}

.ds-link-copy {
    display: flex;
    gap: 8px;
}

.ds-link-copy input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--ds-gray-300);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.ds-link-copy .ds-btn {
    white-space: nowrap;
}

.ds-qr-section {
    text-align: center;
    padding: 20px;
}

.ds-qr-code {
    border-radius: 8px;
    margin-bottom: 8px;
}

.ds-qr-hint {
    font-size: 12px;
    color: var(--ds-gray-500);
    margin: 0;
}

/* Stats Grid */
.ds-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.ds-stat-card-large {
    text-align: center;
    padding: 24px;
    background: var(--ds-gray-50);
    border-radius: 12px;
}

.ds-stat-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--ds-gradient-primary);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.ds-stat-circle.ds-circle-success {
    background: var(--ds-gradient-success);
}

.ds-stat-circle.ds-circle-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.ds-stat-circle.ds-circle-info {
    background: var(--ds-gradient-navy);
}

.ds-stat-card-large h4 {
    margin: 0;
    font-size: 14px;
    color: var(--ds-gray-600);
    font-weight: 500;
}

/* Metric Row */
.ds-metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ds-metric-card {
    text-align: center;
    padding: 20px;
    background: var(--ds-navy);
    border-radius: 12px;
    color: #fff;
}

.ds-metric-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
}

.ds-metric-label {
    font-size: 13px;
    opacity: 0.8;
}

/* Earnings Grid */
.ds-earnings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.ds-earning-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    color: #fff;
}

.ds-earning-card.ds-card-total {
    background: var(--ds-gradient-primary);
}

.ds-earning-card.ds-card-available {
    background: var(--ds-gradient-success);
}

.ds-earning-card.ds-card-withdrawn {
    background: var(--ds-gradient-navy);
}

.ds-earning-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

.ds-earning-value {
    font-size: 36px;
    font-weight: 700;
    display: block;
}

.ds-earning-label {
    font-size: 14px;
    opacity: 0.9;
}

.ds-commission-info {
    padding: 24px;
    background: var(--ds-gray-50);
    border-radius: 12px;
}

.ds-commission-info h4 {
    margin: 0 0 12px;
    color: var(--ds-navy);
}

.ds-commission-info ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ds-commission-info li {
    padding: 8px 0;
    color: var(--ds-gray-600);
}

/* Patients Table */
.ds-table-responsive {
    overflow-x: auto;
}

.ds-patients-table {
    width: 100%;
    border-collapse: collapse;
}

.ds-patients-table th,
.ds-patients-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--ds-gray-200);
}

.ds-patients-table th {
    background: var(--ds-gray-50);
    font-size: 12px;
    font-weight: 600;
    color: var(--ds-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ds-patients-table td {
    font-size: 14px;
    color: var(--ds-gray-700);
}

.ds-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ds-contact-info .ds-email {
    color: var(--ds-gray-600);
    font-size: 13px;
}

.ds-contact-info .ds-phone {
    color: var(--ds-gray-400);
    font-size: 12px;
}

.ds-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.ds-status-success {
    background: #d1fae5;
    color: #059669;
}

.ds-status-pending {
    background: #fef3c7;
    color: #d97706;
}

.ds-status-info {
    background: #dbeafe;
    color: #2563eb;
}

.ds-status-error {
    background: #fee2e2;
    color: #dc2626;
}

.ds-commission-earned {
    color: var(--ds-success);
    font-weight: 600;
}

.ds-commission-pending {
    color: var(--ds-gray-400);
}

/* Empty State */
.ds-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.ds-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.ds-empty-state h3 {
    margin: 0 0 8px;
    color: var(--ds-navy);
}

.ds-empty-state p {
    color: var(--ds-gray-500);
    margin-bottom: 20px;
}

/* Referral Form Container */
.ds-referral-form-container {
    background: var(--ds-gray-50);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

/* Share Options */
.ds-share-options {
    padding-top: 24px;
    border-top: 1px solid var(--ds-gray-200);
}

.ds-share-options h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--ds-gray-600);
}

/* Payout Status */
.ds-payout-status {
    padding: 24px;
    background: var(--ds-gray-50);
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
}

.ds-status-connected,
.ds-status-not-connected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.ds-status-connected {
    color: var(--ds-success);
}

.ds-status-not-connected {
    color: var(--ds-warning);
}

/* Payout Options */
.ds-payout-preference {
    margin-bottom: 24px;
}

.ds-payout-preference h4 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--ds-navy);
}

.ds-payout-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.ds-payout-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--ds-gray-50);
    border: 2px solid var(--ds-gray-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.ds-payout-option:hover {
    border-color: var(--ds-primary-light);
}

.ds-payout-option.selected,
.ds-payout-option:has(input:checked) {
    border-color: var(--ds-primary);
    background: rgba(0, 180, 216, 0.05);
}

.ds-payout-option input {
    display: none;
}

.ds-payout-option .ds-option-icon {
    font-size: 24px;
}

.ds-payout-option strong {
    display: block;
    color: var(--ds-navy);
    margin-bottom: 4px;
}

.ds-payout-option p {
    margin: 0;
    font-size: 12px;
    color: var(--ds-gray-500);
}

/* Balance Box */
.ds-balance-box {
    padding: 24px;
    background: var(--ds-gradient-success);
    border-radius: 12px;
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
}

.ds-balance-label {
    font-size: 14px;
    opacity: 0.9;
}

.ds-balance-value {
    font-size: 40px;
    font-weight: 700;
    display: block;
    margin: 8px 0 16px;
}

/* Payout History */
.ds-payout-history h4 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--ds-navy);
}

.ds-no-data {
    text-align: center;
    padding: 24px;
    color: var(--ds-gray-400);
}

.ds-history-table {
    width: 100%;
    border-collapse: collapse;
}

.ds-history-table th,
.ds-history-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--ds-gray-200);
}

.ds-history-table th {
    font-size: 11px;
    font-weight: 600;
    color: var(--ds-gray-500);
    text-transform: uppercase;
}

/* Settings Sections */
.ds-settings-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--ds-gray-200);
}

.ds-settings-section:last-child {
    border-bottom: none;
}

.ds-settings-section h4 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--ds-navy);
}

.ds-profile-details p {
    margin: 8px 0;
    color: var(--ds-gray-600);
}

.ds-profile-details code {
    background: var(--ds-gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.ds-security-badge {
    font-size: 14px;
    color: var(--ds-success);
}

/* Buttons */
.ds-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ds-btn-primary {
    background: var(--ds-primary);
    color: #fff;
}

.ds-btn-primary:hover {
    background: var(--ds-primary-dark);
}

.ds-btn-secondary {
    background: var(--ds-gray-200);
    color: var(--ds-gray-700);
}

.ds-btn-secondary:hover {
    background: var(--ds-gray-300);
}

.ds-btn-success {
    background: var(--ds-success);
    color: #fff;
}

.ds-btn-success:hover {
    background: var(--ds-success-dark);
}

.ds-btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .ds-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-earnings-grid {
        grid-template-columns: 1fr;
    }

    .ds-metric-row {
        grid-template-columns: 1fr;
    }

    .ds-payout-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ds-mobile-menu-toggle {
        display: flex;
    }

    .ds-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: var(--ds-shadow-xl);
    }

    .ds-sidebar.open {
        left: 0;
    }

    .ds-main-content {
        width: 100%;
    }

    .ds-content-header {
        padding: 16px;
        padding-left: 64px;
    }

    .ds-header-right {
        display: none;
    }

    .ds-tab-content {
        padding: 16px;
    }

    .ds-quick-stats {
        grid-template-columns: 1fr;
    }

    .ds-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ds-ambassador-section {
        padding: 16px;
    }

    .ds-link-copy {
        flex-direction: column;
    }

    .ds-url-box input {
        width: 100%;
    }

    .ds-patients-table {
        font-size: 12px;
    }

    .ds-patients-table th,
    .ds-patients-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .ds-stats-grid {
        grid-template-columns: 1fr;
    }

    .ds-panel {
        padding: 16px;
    }

    .ds-panel-title {
        font-size: 20px;
    }

    .ds-stat-circle {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .ds-balance-value {
        font-size: 32px;
    }
}

/* ============================================
   HEADER & FOOTER STYLES (Consolidated)
   ============================================ */

/* Header Styles - Dark Navy Background for White Logo */
.ds-site-header {
    background: var(--ds-navy);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.ds-header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ds-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ds-logo-img {
    height: 45px;
    width: auto;
}

.ds-header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ds-nav-link {
    color: var(--ds-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    opacity: 0.9;
}

.ds-nav-link:hover {
    color: var(--ds-cyan-light);
    opacity: 1;
}

.ds-nav-btn {
    background: var(--ds-cyan);
    color: var(--ds-white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.ds-nav-btn:hover {
    background: var(--ds-cyan-light);
    transform: translateY(-1px);
}

.ds-nav-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--ds-white);
}

.ds-nav-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ds-white);
    transform: translateY(-1px);
}

.ds-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.ds-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ds-white);
    transition: all 0.3s;
}

/* Hero Section - Image 3 Style */
.ds-signup-hero {
    background: linear-gradient(135deg, #f0f9ff 0%, var(--ds-white) 50%, var(--ds-gray-50) 100%);
    padding: 4rem 2rem;
    min-height: 600px;
}

.ds-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    /* align-items: center; */
}

.ds-hero-content {
    padding: 1rem 0;
}

/* Badge */
.ds-hero-badge {
    display: inline-block;
    background: var(--ds-cyan);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.ds-hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--ds-navy);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ds-text-accent {
    color: var(--ds-cyan);
}

.ds-hero-description {
    color: var(--ds-gray-600);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Features List */
.ds-hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.ds-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ds-feature-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ds-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ds-feature-text strong {
    color: var(--ds-navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.ds-feature-text span {
    color: var(--ds-gray-500);
    font-size: 0.875rem;
}

/* Trust Badges */
.ds-hero-trust {
    margin-top: 2rem;
}

.ds-trust-label {
    font-size: 0.875rem;
    color: var(--ds-gray-600);
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
}

.ds-trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ds-trust-badge {
    background: var(--ds-white);
    border: 1px solid var(--ds-gray-200);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--ds-gray-700);
    font-weight: 500;
}

/* Form Wrapper */
.ds-hero-form-wrapper {
    position: relative;
}

/* Form Container */
.ds-signup-form-container {
    background: var(--ds-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.ds-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ds-navy);
    margin-bottom: 0.5rem;
    text-align: center;
}

.ds-form-subtitle {
    font-size: 0.95rem;
    color: var(--ds-gray-500);
    margin-bottom: 1.5rem;
    text-align: center;
}

.ds-form-rating {
    text-align: center;
    font-size: 0.875rem;
    color: var(--ds-gray-500);
    margin-top: 1.25rem;
}

.ds-signup-form-container .gform_wrapper {
    margin: 0 !important;
}

.ds-signup-form-container .gform_fields {
    gap: 1rem !important;
}

.ds-signup-form-container input[type="text"],
.ds-signup-form-container input[type="email"],
.ds-signup-form-container input[type="tel"],
.ds-signup-form-container input[type="password"],
.ds-signup-form-container select,
.ds-signup-form-container textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--ds-gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ds-signup-form-container input:focus,
.ds-signup-form-container select:focus,
.ds-signup-form-container textarea:focus {
    outline: none;
    border-color: var(--ds-cyan);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.ds-signup-form-container .gform_button,
.ds-signup-form-container input[type="submit"] {
    width: 100%;
    background: var(--ds-cyan);
    color: var(--ds-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.ds-signup-form-container .gform_button:hover,
.ds-signup-form-container input[type="submit"]:hover {
    background: var(--ds-navy);
    transform: translateY(-1px);
}

.ds-form-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--ds-gray-500);
    font-size: 0.875rem;
}

.ds-form-footer a {
    color: var(--ds-cyan);
    text-decoration: none;
    font-weight: 500;
}

/* How It Works Section */
.ds-how-it-works {
    background: var(--ds-white);
    padding: 5rem 2rem;
}

.ds-section-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.ds-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ds-navy);
    margin-bottom: 0.75rem;
}

.ds-section-description {
    color: var(--ds-gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Steps Progress - Full Width */
.ds-steps-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 100%;
    padding: 0 10%;
}

.ds-step-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ds-cyan);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.ds-step-line {
    height: 2px;
    flex: 1;
    background: var(--ds-gray-200);
    margin: 0 -1px;
}

.ds-step-label {
    position: absolute;
    bottom: -30px;
    font-size: 0.8rem;
    color: var(--ds-gray-500);
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
}

/* Steps Cards */
.ds-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ds-step-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ds-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.ds-step-card:nth-child(2) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.ds-step-card:nth-child(3) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.ds-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--ds-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ds-step-card:nth-child(1) .ds-step-icon {
    color: #dc2626;
}

.ds-step-card:nth-child(2) .ds-step-icon {
    color: #0284c7;
}

.ds-step-card:nth-child(3) .ds-step-icon {
    color: #d97706;
}

.ds-step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ds-navy);
    margin-bottom: 0.75rem;
}

.ds-step-description {
    color: var(--ds-gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FAQs Section */
.ds-faqs {
    background: var(--ds-gray-50);
    padding: 5rem 2rem;
}

.ds-faqs-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.ds-faqs-intro h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ds-navy);
    margin-bottom: 1rem;
}

.ds-faqs-intro p {
    color: var(--ds-gray-500);
    font-size: 1rem;
    line-height: 1.7;
}

.ds-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ds-faq-item {
    background: var(--ds-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ds-faq-item:hover {
    border-color: rgba(0, 180, 216, 0.2);
}

.ds-faq-item.active {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: var(--ds-cyan);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.15);
}

.ds-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ds-gray-700);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.ds-faq-item.active .ds-faq-question {
    color: var(--ds-navy);
    font-weight: 600;
}

.ds-faq-question:hover {
    background: var(--ds-gray-50);
    color: var(--ds-navy);
}

.ds-faq-item.active .ds-faq-question:hover {
    background: transparent;
}

.ds-faq-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s, color 0.2s;
    color: var(--ds-gray-400);
}

.ds-faq-item.active .ds-faq-arrow {
    transform: rotate(180deg);
    color: var(--ds-cyan);
}

.ds-faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: var(--ds-gray-600);
    line-height: 1.7;
}

.ds-faq-item.active .ds-faq-answer {
    display: block;
    text-align: left;
}

/* Footer */
.ds-site-footer {
    background: var(--ds-navy);
    color: var(--ds-gray-300);
    padding: 2rem;
    text-align: center;
}

.ds-copyright {
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.ds-signup-hero {
    animation: fadeInUp 0.6s ease-out;
}

.ds-step-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.ds-step-card:nth-child(1) {
    animation-delay: 0.1s;
}

.ds-step-card:nth-child(2) {
    animation-delay: 0.2s;
}

.ds-step-card:nth-child(3) {
    animation-delay: 0.3s;
}

.ds-nav-btn:hover {
    animation: pulse 0.3s ease-in-out;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .ds-hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .ds-hero-image {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .ds-hero-image img {
        max-width: 380px;
        width: 100%;
    }

    .ds-hero-content {
        padding: 1.5rem;
    }

    .ds-hero-title {
        font-size: 2.25rem;
    }

    .ds-hero-description {
        max-width: 600px;
        margin: 0 auto 2rem;
    }

    .ds-signup-form-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .ds-steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .ds-faqs-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .ds-faqs-intro {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Responsive - Mobile Landscape */
@media (max-width: 768px) {
    .ds-header-container {
        padding: 0.5rem 1rem;
    }

    .ds-logo-img {
        height: 35px;
    }

    .ds-header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ds-navy-dark);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
        gap: 0.75rem;
    }

    .ds-header-nav.open {
        display: flex;
    }

    .ds-nav-link,
    .ds-nav-btn {
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .ds-mobile-toggle {
        display: flex;
    }

    .ds-signup-hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .ds-hero-image img {
        max-width: 280px;
        border-radius: 16px;
    }

    .ds-hero-content {
        padding: 1rem;
    }

    .ds-hero-title {
        font-size: 1.875rem;
        line-height: 1.3;
    }

    .ds-hero-description {
        font-size: 1rem;
    }

    .ds-signup-form-container {
        padding: 1.5rem;
    }

    .ds-steps-progress {
        display: none;
    }

    .ds-steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 1.5rem;
    }

    .ds-step-card {
        padding: 2rem 1.5rem;
    }

    .ds-how-it-works,
    .ds-faqs {
        padding: 3rem 1rem;
    }

    .ds-section-title {
        font-size: 1.75rem;
    }

    .ds-faqs-intro h2 {
        font-size: 1.75rem;
    }

    .ds-faq-question {
        padding: 1rem;
        font-size: 0.9375rem;
    }
}

/* Responsive - Mobile Portrait */
@media (max-width: 480px) {
    .ds-header-container {
        padding: 0.5rem 0.75rem;
    }

    .ds-logo-img {
        height: 30px;
    }

    .ds-signup-hero {
        padding: 1.5rem 0.75rem;
    }

    .ds-hero-image img {
        max-width: 220px;
    }

    .ds-hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .ds-hero-title {
        font-size: 1.5rem;
    }

    .ds-hero-description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .ds-signup-form-container {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .ds-signup-form-container input[type="text"],
    .ds-signup-form-container input[type="email"],
    .ds-signup-form-container input[type="tel"],
    .ds-signup-form-container input[type="password"] {
        padding: 0.75rem;
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    .ds-step-card {
        padding: 1.5rem 1rem;
    }

    .ds-step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 15px;
    }

    .ds-step-title {
        font-size: 1.1rem;
    }

    .ds-step-description {
        font-size: 0.875rem;
    }

    .ds-faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.875rem;
    }

    .ds-site-footer {
        padding: 1.5rem 1rem;
    }

    .ds-copyright {
        font-size: 0.8125rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .ds-step-card:hover {
        transform: none;
        box-shadow: none;
    }

    .ds-faq-question:hover {
        background: none;
    }

    .ds-nav-btn:hover {
        transform: none;
        animation: none;
    }
}

/* Improve focus states for accessibility */
.ds-nav-link:focus,
.ds-nav-btn:focus,
.ds-faq-question:focus {
    outline: 2px solid var(--ds-cyan);
    outline-offset: 2px;
    background-color: var(--ds-gray-500);
}

.ds-signup-form-container input:focus,
.ds-signup-form-container button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.3);
}

/* =============================================
   RESOURCES TAB STYLES
   ============================================= */

.ds-resources-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ds-gray-200);
}

.ds-resources-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ds-resources-section h3 {
    font-size: 1.1rem;
    color: var(--ds-navy);
    margin-bottom: 1rem;
}

.ds-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ds-resource-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--ds-gray-200);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ds-resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ds-resource-preview {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ds-resource-info {
    padding: 1rem;
    text-align: center;
}

.ds-resource-info h4 {
    font-size: 0.95rem;
    color: var(--ds-navy);
    margin: 0 0 0.25rem 0;
}

.ds-resource-info p {
    font-size: 0.8rem;
    color: var(--ds-gray-500);
    margin: 0 0 0.75rem 0;
}

.ds-btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.ds-email-signature-preview {
    font-family: Arial, sans-serif;
}

.ds-copy-signature {
    cursor: pointer;
}

@media (max-width: 640px) {
    .ds-resources-grid {
        grid-template-columns: 1fr;
    }
}