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

:root {
    --primary: #662d91;
    --primary-dark: #522475;
    --primary-light: #f0e8f5;
    --text: #1A1A2E;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --bg: #F5F7FA;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --radius: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--primary);
    padding: 0 20px;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo svg { width: 32px; height: 32px; }

.logo span {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

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

.header-cuid {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.header-cuid:hover { background: rgba(255,255,255,0.25); }

.header-cuid span {
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.header-cuid svg {
    width: 14px;
    height: 14px;
    color: rgba(255,255,255,0.7);
}

.btn-logout {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-logout:hover { background: rgba(255,255,255,0.2); }

/* Main Container */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    padding-bottom: 100px;
}

/* Dashboard Grid - Full Width */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 20px;
    width: 100%;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 280px 1fr;
    }
    .dashboard-ads {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-left {
        order: 2;
    }
    .dashboard-right {
        order: 1;
    }
}

/* Main Container - Full Width */
.main {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    padding-bottom: 100px;
}

/* Advertisement Cards */
.dashboard-ads {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ad-card {
    background: var(--white);
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, transparent 50%);
    opacity: 0.5;
    pointer-events: none;
}

.ad-card-content {
    position: relative;
    z-index: 1;
}

.ad-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ad-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.ad-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.ad-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px dashed var(--primary);
}

.ad-badge svg {
    width: 14px;
    height: 14px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.card-body { padding: 20px; }

/* Profile Card */
.profile-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.profile-info h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.profile-info p {
    font-size: 14px;
    opacity: 0.85;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge svg { width: 12px; height: 12px; }

.badge-verified {
    background: var(--success);
    color: var(--white);
}

.badge-pending {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 22px;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 11px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: var(--bg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.quick-action:hover { background: var(--primary-light); }

.quick-action-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.quick-action-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.quick-action span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
}

/* Score Card */
.score-card {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

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

.score-card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.score-badge {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 24px;
}

.score-circle {
    width: 120px;
    height: 120px;
    position: relative;
    flex-shrink: 0;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle-bg {
    fill: none;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 10;
}

.score-circle-progress {
    fill: none;
    stroke: var(--success);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1s ease;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.score-max {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 2px;
}

.score-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.score-info p {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 12px;
}

.score-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.score-status.excellent {
    background: rgba(16,185,129,0.2);
    color: var(--success);
}

.score-status.good {
    background: rgba(59,130,246,0.2);
    color: #3B82F6;
}

.score-status.fair {
    background: rgba(245,158,11,0.2);
    color: var(--warning);
}

.score-status.poor {
    background: rgba(239,68,68,0.2);
    color: var(--error);
}

/* Score Empty State */
.score-empty {
    text-align: center;
    padding: 20px 0;
}

.score-empty-icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.score-empty-icon svg {
    width: 36px;
    height: 36px;
    opacity: 0.5;
}

.score-empty h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.score-empty p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
}

/* Services Grid */
.services-section {
    margin-bottom: 24px;
}

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

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 0 0 0 100%;
    opacity: 0.5;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.service-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.service-badge.coming-soon {
    background: var(--warning-light);
    color: #B45309;
}

.service-badge.live {
    background: var(--success-light);
    color: #047857;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-decoration: none;
}

.btn svg { width: 18px; height: 18px; }

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

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

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

.btn-white:hover { box-shadow: var(--shadow-md); }

.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 16px;
    font-size: 13px;
}

.btn-block { width: 100%; }

/* Alert */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert svg { width: 20px; height: 20px; flex-shrink: 0; }

.alert-warning {
    background: var(--warning-light);
    color: #92400E;
}

.alert-error {
    background: var(--error-light);
    color: #B91C1C;
}

.alert-info {
    background: var(--primary-light);
    color: var(--primary-dark);
}

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

.modal-overlay.active { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px 24px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.modal-header p {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

.modal-body { padding: 24px; }

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.modal-footer .btn { flex: 1; }

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input.pan-input {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-align: center;
    font-size: 18px;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: none;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
}

@media (max-width: 960px) {
    .bottom-nav { display: block; }
}

.nav-items {
    display: flex;
    justify-content: space-around;
    max-width: 400px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
}

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

.nav-item svg { width: 24px; height: 24px; }

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
