@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #6D28D9;
    --primary-dark: #5B21B6;
    --accent: #8B5CF6;
    --accent-soft: rgba(109, 40, 217, 0.12);
    --dark: #1F1B2E;
    --gray: #5B5F70;
    --gray-light: #F4F3F8;
    --white: #FFFFFF;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --surface: #FFFFFF;
    --surface-muted: #F9F7FC;
    --border: #E5E1F0;
    --text-muted: #6B7280;
    --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 30px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.14);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --focus-ring: 0 0 0 4px rgba(109, 40, 217, 0.2);
    --transition: 0.25s ease;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --text-xs: 0.78rem;
    --text-sm: 0.88rem;
    --text-md: 1rem;
    --text-lg: 1.15rem;
    --text-xl: 1.4rem;
}

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

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    letter-spacing: -0.01em;
    line-height: 1.2;
}

p {
    color: var(--dark);
}

a {
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.navbar-brand a {
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.navbar-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    gap: 8px;
    align-items: center;
}

.navbar-toggle .navbar-toggle-icon {
    position: relative;
    width: 22px;
    height: 14px;
    display: inline-block;
}

.navbar-toggle .navbar-toggle-icon::before,
.navbar-toggle .navbar-toggle-icon::after,
.navbar-toggle .navbar-toggle-icon span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.navbar-toggle .navbar-toggle-icon::before {
    top: 0;
}

.navbar-toggle .navbar-toggle-icon span {
    top: 6px;
}

.navbar-toggle .navbar-toggle-icon::after {
    top: 12px;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: var(--gray-light);
}

.nav-link:focus-visible,
.btn:focus-visible,
.link-secondary:focus-visible,
.footer-section a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 15px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.3);
}

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

.btn-secondary:hover {
    background: #11101a;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(109, 40, 217, 0.4);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.hero .btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f3efff 100%);
    color: #2a1f4d;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.hero .btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.25);
}

.hero .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

.hero .btn-outline:hover {
    background: #ffffff;
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

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

.hero {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 45%),
        linear-gradient(135deg, #5b21b6 0%, #6d28d9 45%, #8b5cf6 100%);
    color: var(--white);
    padding: 110px 0 90px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: -30% -10% auto;
    height: 60%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.25;
    pointer-events: none;
}

.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.02));
    filter: blur(4px);
    animation: float 18s ease-in-out infinite;
}

.hero-orb.orb-1 {
    width: 240px;
    height: 240px;
    top: -80px;
    left: -60px;
    animation-delay: 0s;
}

.hero-orb.orb-2 {
    width: 200px;
    height: 200px;
    bottom: -90px;
    right: 15%;
    animation-delay: 2s;
}

.hero-orb.orb-3 {
    width: 160px;
    height: 160px;
    top: 18%;
    right: -40px;
    animation-delay: 4s;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-actions .btn {
    min-width: 220px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin-top: 60px;
}

.hero-stats .stat-label {
    color: #ffffff;
}

.stat-item {
    text-align: center;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    min-width: 170px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(6px);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
}

.stat-label {
    font-size: 16px;
    color: #ffffff;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.7s ease forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.6s;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-18px) translateX(10px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section {
    padding: 90px 0;
}

.section-gray {
    background: var(--surface-muted);
    position: relative;
    overflow: hidden;
}

.section-gray::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(109, 40, 217, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.6;
    pointer-events: none;
}

.section-gray .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(109, 40, 217, 0.25);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.features-grid, .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card, .benefit-card {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.feature-icon, .benefit-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(109, 40, 217, 0.2);
}

.pricing-featured {
    border: 3px solid var(--primary);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.pricing-price {
    margin-bottom: 30px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.price-period {
    display: block;
    font-size: 16px;
    color: var(--gray);
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-feature {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--surface-muted);
    border-radius: var(--radius-md);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.faq-question {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.8;
}

.cta-section {
    background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 45%, #8b5cf6 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.25;
    pointer-events: none;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

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

.footer {
    background: #171225;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
}

.footer,
.footer-section,
.footer-section p,
.footer-section span,
.footer-bottom,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.82);
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 40px 20px;
}

.auth-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 50px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

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

.auth-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary);
}

.auth-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

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

.auth-form, .form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
}

.form-group input, .form-group textarea, .form-group select {
    padding: 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--surface);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.form-group input:disabled {
    background: var(--gray-light);
    cursor: not-allowed;
}

.form-group small {
    color: var(--text-muted);
    font-size: 13px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-secondary {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.link-secondary:hover {
    text-decoration: underline;
}

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

.auth-footer p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #10B981;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 2px solid #EF4444;
}

.alert-info {
    background: #EDE9FE;
    color: #4C1D95;
    border: 2px solid #8B5CF6;
}

.alert h3 {
    margin-bottom: 10px;
}

.dashboard {
    min-height: 100vh;
    background: var(--white);
    padding: 40px 0;
}

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

.dashboard-header h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

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

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

.stat-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stat-icon {
    font-size: 36px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(109, 40, 217, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

.projects-section {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
}

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

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--surface);
    color: var(--gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.05);
}

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

.filter-btn.active:hover {
    background: #f3efff;
    color: var(--primary);
    border-color: rgba(109, 40, 217, 0.4);
}

.filter-btn.active {
    background: #f3efff;
    color: var(--primary);
    border-color: rgba(109, 40, 217, 0.4);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    border-color: rgba(109, 40, 217, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(109, 40, 217, 0.2), rgba(139, 92, 246, 0.35));
    opacity: 0.6;
}

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

.project-header h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.project-code {
    color: var(--text-muted);
    font-size: 14px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-draft {
    background: #E5E7EB;
    color: #4B5563;
}

.status-submitted {
    background: #EDE9FE;
    color: #4C1D95;
}

.status-in_progress {
    background: #FEF3C7;
    color: #92400E;
}

.status-review {
    background: #F3E8FF;
    color: #6B21A8;
}

.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-cancelled, .status-error {
    background: #FEE2E2;
    color: #991B1B;
}

.project-info {
    margin-bottom: 16px;
}

.status-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 8px;
    margin: 14px 0 16px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-steps span {
    padding: 6px 6px;
    border-radius: 999px;
    text-align: center;
    background: var(--surface-muted);
    color: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(15, 23, 42, 0.06);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-steps--draft span:nth-child(-n+1),
.status-steps--submitted span:nth-child(-n+1),
.status-steps--in_progress span:nth-child(-n+2),
.status-steps--review span:nth-child(-n+3),
.status-steps--completed span:nth-child(-n+4) {
    background: rgba(109, 40, 217, 0.12);
    color: rgba(43, 22, 84, 0.85);
    border-color: rgba(109, 40, 217, 0.18);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.info-label {
    font-weight: 600;
    color: var(--text-muted);
}

.project-actions {
    display: flex;
    gap: 10px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    border-radius: var(--radius-md);
    background: var(--surface-muted);
    border: 1px dashed rgba(109, 40, 217, 0.25);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    inset: -20% 10% auto;
    height: 120%;
    background: radial-gradient(circle at top, rgba(109, 40, 217, 0.12), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.empty-state > * {
    position: relative;
    z-index: 1;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 16px rgba(109, 40, 217, 0.2));
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.profile-card {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(109, 40, 217, 0.2);
}

.profile-card h2 {
    margin-bottom: 20px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wizard-container {
    min-height: 100vh;
    background: var(--white);
    padding: 40px 0;
}

.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-header h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

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

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(109, 40, 217, 0.18), rgba(139, 92, 246, 0.18));
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.progress-step.active .step-circle {
    background: var(--primary);
    color: var(--white);
    border-color: rgba(109, 40, 217, 0.2);
    transform: translateY(-2px);
}

.progress-step.completed .step-circle {
    background: var(--success);
    color: var(--white);
    border-color: rgba(16, 185, 129, 0.25);
}

.step-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.wizard-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.wizard-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(109, 40, 217, 0.08), transparent 45%);
    pointer-events: none;
}

.wizard-content > * {
    position: relative;
    z-index: 1;
}

.step-panel h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.step-panel > p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.project-type-card {
    cursor: pointer;
}

.project-type-card input[type="radio"] {
    display: none;
}

.project-type-card .card-content {
    padding: 24px;
    background: var(--surface-muted);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-type-card input[type="radio"]:checked + .card-content {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
}

.project-type-card .card-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(109, 40, 217, 0.25);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.card-title {
    font-weight: 600;
}

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

.style-option {
    cursor: pointer;
}

.style-option input[type="radio"] {
    display: none;
}

.style-option span {
    display: block;
    padding: 16px;
    background: var(--surface-muted);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.style-option input[type="radio"]:checked + span {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
}

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

.urgency-option {
    cursor: pointer;
}

.urgency-option input[type="radio"] {
    display: none;
}

.urgency-content {
    padding: 20px;
    background: var(--surface-muted);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.urgency-option input[type="radio"]:checked + .urgency-content {
    background: var(--white);
    border-color: var(--primary);
}

.urgency-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.urgency-price {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

.info-box {
    background: var(--surface-muted);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border: 1px solid var(--border);
}

.summary-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.summary-section {
    padding: 20px;
    background: var(--surface-muted);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.summary-section h3 {
    margin-bottom: 16px;
    color: var(--primary);
}

.project-detail-header {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
}

.project-detail-header h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.project-detail-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-card {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(109, 40, 217, 0.2);
}

.detail-card h2, .detail-card h3 {
    margin-bottom: 20px;
}

.legal-page .legal-container {
    max-width: 900px;
}

.legal-page .legal-title {
    margin-bottom: 12px;
    font-size: 34px;
}

.legal-page .legal-updated {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-page .legal-card {
    margin-bottom: 30px;
}

.legal-page .legal-card:last-child {
    margin-bottom: 0;
}

.legal-page .legal-list {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-page .legal-note {
    margin-top: 10px;
    color: var(--text-muted);
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

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

.timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 30px;
    bottom: -20px;
    width: 2px;
    background: var(--border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    margin-top: 4px;
}

.timeline-content {
    flex: 1;
}

.timeline-status {
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-time {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.timeline-notes {
    font-size: 14px;
    color: var(--dark);
    margin-top: 8px;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.message-admin {
    background: #F3E8FF;
    border-color: rgba(109, 40, 217, 0.2);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2a1f4d;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.message-body {
    color: var(--dark);
}

.message-typing {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(109, 40, 217, 0.12);
    color: #4C1D95;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    align-self: flex-start;
    border: 1px solid rgba(109, 40, 217, 0.2);
    box-shadow: var(--shadow-sm);
}

.message-meta {
    margin-top: 6px;
    text-align: right;
    color: var(--text-muted);
}

.message-read {
    font-size: 11px;
    font-weight: 600;
}

.message-read--read {
    color: #16A34A;
}

.message-read--unread {
    color: #6B7280;
}

.chat-read-indicator {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.chat-indicators {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 50;
}

.chat-read-indicator--read {
    background: #DCFCE7;
    color: #166534;
}

.chat-read-indicator--unread {
    background: #E5E7EB;
    color: #374151;
}

.chat-read-indicator--none {
    background: #F3F4F6;
    color: #6B7280;
}

.payment-container {
    display: flex;
    justify-content: center;
}

.payment-card {
    max-width: 520px;
    width: 100%;
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.payment-subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.payment-summary {
    background: var(--surface-muted);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: grid;
    gap: 6px;
    font-size: 14px;
    border: 1px solid var(--border);
}

.payment-form {
    display: grid;
    gap: 16px;
}

.payment-message {
    color: var(--error);
    font-size: 14px;
}

.payment-status {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.payment-status-inner {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-width: 280px;
}

.payment-status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    position: relative;
}

.payment-status-icon--success {
    background: #DCFCE7;
}

.payment-status-icon--error {
    background: #FEE2E2;
}

.payment-status-icon--success::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 40px;
    border: solid #16A34A;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
    left: 26px;
    top: 12px;
    animation: checkmark 0.35s ease;
}

.payment-status-icon--error::before,
.payment-status-icon--error::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 4px;
    background: #DC2626;
    top: 34px;
    left: 18px;
    border-radius: 4px;
    animation: cross 0.3s ease;
}

.payment-status-icon--error::before {
    transform: rotate(45deg);
}

.payment-status-icon--error::after {
    transform: rotate(-45deg);
}

.payment-status-text {
    font-weight: 600;
}

.payment-result {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-muted);
    padding: 24px;
}

.payment-result-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 420px;
    border: 1px solid var(--border);
}

.payment-result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    position: relative;
}

.payment-result-icon--success {
    background: #DCFCE7;
}

.payment-result-icon--error {
    background: #FEE2E2;
}

.payment-result-icon--success::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 44px;
    border: solid #16A34A;
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
    left: 29px;
    top: 10px;
    animation: checkmark 0.35s ease;
}

.payment-result-icon--error::before,
.payment-result-icon--error::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 5px;
    background: #DC2626;
    top: 38px;
    left: 20px;
    border-radius: 4px;
    animation: cross 0.3s ease;
}

.payment-result-icon--error::before {
    transform: rotate(45deg);
}

.payment-result-icon--error::after {
    transform: rotate(-45deg);
}

@keyframes checkmark {
    from { transform: scale(0) rotate(45deg); opacity: 0; }
    to { transform: scale(1) rotate(45deg); opacity: 1; }
}

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

.assets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.asset-icon {
    font-size: 32px;
}

.asset-item .btn {
    white-space: nowrap;
}

.asset-name {
    font-weight: 600;
    margin-bottom: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.filters-bar {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
    z-index: 20;
    backdrop-filter: blur(6px);
}

.filters-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filters-form input, .filters-form select {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filters-form input {
    flex: 1;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.data-table thead {
    background: var(--surface-muted);
}

.data-table th, .data-table td {
    padding: 16px;
    text-align: left;
}

.data-table th {
    font-weight: 600;
    color: var(--dark);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface-muted);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
    background: var(--gray-light);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

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

/* Admin projects list */
.admin-projects .dashboard-header {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(109, 40, 217, 0.18);
    box-shadow: var(--shadow-sm);
}

.admin-projects .dashboard-header h1 {
    margin-bottom: 4px;
}

.admin-projects .filters-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-projects .filters-form {
    flex: 1;
    gap: 10px;
}

.admin-projects .filters-form input,
.admin-projects .filters-form select {
    height: 44px;
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.12);
}

.admin-projects .filters-form input:focus,
.admin-projects .filters-form select:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.admin-projects .data-table {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-projects .data-table thead {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.admin-projects .data-table th,
.admin-projects .data-table td {
    padding: 18px 16px;
    vertical-align: middle;
}

.admin-projects .data-table th {
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #475569;
}

.admin-projects .data-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.admin-projects .data-table tbody tr:hover {
    background: #f3efff;
}

.admin-projects .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-projects .actions-group {
    gap: 10px;
}

.admin-projects .actions-group .btn {
    border-radius: 999px;
    padding: 6px 14px;
}

.admin-projects .pagination {
    gap: 16px;
    margin-top: 26px;
}

.admin-projects .pagination .btn {
    border-radius: 999px;
    padding: 8px 18px;
}

/* Admin users list */
.admin-users .dashboard-header {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.08), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: var(--shadow-sm);
}

.admin-users .dashboard-header h1 {
    margin-bottom: 4px;
}

.admin-users .filters-bar {
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-users .filters-form {
    gap: 10px;
}

.admin-users .filters-form input {
    height: 44px;
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.12);
}

.admin-users .filters-form input:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.admin-users .data-table {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-users .data-table thead {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.admin-users .data-table th,
.admin-users .data-table td {
    padding: 18px 16px;
    vertical-align: middle;
}

.admin-users .data-table th {
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #475569;
}

.admin-users .data-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.admin-users .data-table tbody tr:hover {
    background: #f6f3ff;
}

.admin-users .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-users .btn.btn-sm {
    border-radius: 999px;
    padding: 6px 14px;
}

.admin-users .pagination {
    gap: 16px;
    margin-top: 26px;
}

.admin-users .pagination .btn {
    border-radius: 999px;
    padding: 8px 18px;
}

/* User dashboard */
.user-dashboard .dashboard-header {
    padding: 20px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(109, 40, 217, 0.2);
    box-shadow: var(--shadow-sm);
}

.user-dashboard .dashboard-header h1 {
    font-size: 34px;
    margin-bottom: 6px;
}

.user-dashboard .dashboard-header p {
    color: #475569;
}

.user-dashboard .dashboard-header .btn {
    border-radius: 999px;
    padding: 12px 22px;
}

.user-dashboard .stats-grid {
    gap: 18px;
}

.user-dashboard .stat-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.user-dashboard .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(109, 40, 217, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.user-dashboard .stat-value {
    font-size: 30px;
}

.user-dashboard .projects-section {
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.user-dashboard .projects-header h2 {
    font-size: 24px;
}

.user-dashboard .filter-buttons {
    flex-wrap: wrap;
    gap: 8px;
}

.user-dashboard .filter-btn {
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid rgba(109, 40, 217, 0.2);
    background: #ffffff;
}

.user-dashboard .filter-btn:hover {
    transform: translateY(-1px);
}

.user-dashboard .project-card {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.user-dashboard .project-card:hover {
    border-color: rgba(109, 40, 217, 0.35);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.user-dashboard .project-header h3 {
    font-size: 18px;
}

.user-dashboard .project-actions {
    gap: 10px;
}

.user-dashboard .project-actions .btn {
    border-radius: 999px;
}

.user-dashboard .empty-state {
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px dashed rgba(109, 40, 217, 0.28);
    padding: 36px;
}

/* Admin dashboard */
.admin-dashboard .dashboard-header {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(109, 40, 217, 0.18);
    box-shadow: var(--shadow-sm);
}

.admin-dashboard .stats-grid {
    gap: 18px;
}

.admin-dashboard .stat-card {
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f5ff 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-dashboard .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(109, 40, 217, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.admin-dashboard .admin-section {
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Designer dashboard */
.designer-dashboard .dashboard-header {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(109, 40, 217, 0.18);
    box-shadow: var(--shadow-sm);
}

.designer-dashboard .projects-section {
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.designer-dashboard .projects-grid--mine {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

.designer-dashboard .project-card {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.designer-dashboard .project-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.designer-dashboard .projects-section--mine .project-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.designer-dashboard .project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(109, 40, 217, 0.28);
}

.designer-dashboard .project-actions .btn {
    border-radius: var(--radius-pill);
}

.designer-dashboard .projects-section--mine .project-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.designer-dashboard .project-panel {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.designer-dashboard .designer-overview {
    display: grid;
    gap: 20px;
}

.designer-dashboard .overview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 18px;
}

.designer-dashboard .overview-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.designer-dashboard .overview-card {
    border-radius: 16px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 6px;
}

.designer-dashboard .overview-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.55);
}

.designer-dashboard .overview-value {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 6px;
}

.designer-dashboard .overview-meta {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.designer-dashboard .overview-summary {
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 16px;
}

.designer-dashboard .summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.designer-dashboard .summary-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.designer-dashboard .summary-header p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.designer-dashboard .summary-total {
    text-align: right;
    display: grid;
    gap: 4px;
    min-width: 80px;
}

.designer-dashboard .summary-total-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.55);
}

.designer-dashboard .summary-total-value {
    font-size: 1.6rem;
    font-weight: 700;
}

.designer-dashboard .status-breakdown {
    display: grid;
    gap: 12px;
}

.designer-dashboard .status-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 2fr 40px;
    gap: 12px;
    align-items: center;
}

.designer-dashboard .status-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.designer-dashboard .status-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.designer-dashboard .status-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 12px;
    background: rgba(109, 40, 217, 0.2);
    transition: width 0.3s ease;
}

.designer-dashboard .status-value {
    font-size: 0.85rem;
    text-align: right;
    color: var(--text-muted);
}

.designer-dashboard .summary-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.designer-dashboard .summary-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.designer-dashboard .summary-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.designer-dashboard .summary-cta-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.designer-dashboard .overview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.designer-dashboard .designer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.designer-dashboard .designer-tab {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.designer-dashboard .designer-tab.is-active {
    background: rgba(109, 40, 217, 0.12);
    border-color: rgba(109, 40, 217, 0.3);
    color: rgba(35, 15, 80, 0.9);
}

.designer-dashboard .designer-tab-panel {
    display: none;
}

.designer-dashboard .designer-tab-panel.is-active {
    display: block;
}

.designer-dashboard .project-panel--history summary {
    cursor: pointer;
}

.designer-dashboard .project-panel--history .timeline {
    margin-top: 10px;
}

.designer-dashboard .timeline--compact .timeline-item {
    margin-bottom: 10px;
}

.designer-dashboard .detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr);
    gap: 24px;
    align-items: start;
}

.designer-dashboard .detail-main,
.designer-dashboard .detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.designer-dashboard .detail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.designer-dashboard .detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.designer-dashboard .dropzone {
    display: grid;
    gap: 8px;
    border: 2px dashed rgba(109, 40, 217, 0.3);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    color: rgba(15, 23, 42, 0.7);
    background: rgba(248, 250, 252, 0.9);
}

.designer-dashboard .dropzone input[type="file"] {
    display: none;
}

.designer-dashboard .dropzone-title {
    font-weight: 600;
}

.designer-dashboard .dropzone-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.is-open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.modal-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    width: min(480px, 92vw);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

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

.modal-header h3 {
    margin: 0;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
}

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

.designer-dashboard .project-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 14px;
}

.designer-dashboard .project-workspace-main,
.designer-dashboard .project-workspace-files {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.designer-dashboard .project-files-scroll {
    max-height: 360px;
    overflow: auto;
    padding-right: 6px;
}

.designer-dashboard .project-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.designer-dashboard .project-panel-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.55);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.designer-dashboard .project-panel-title .panel-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(109, 40, 217, 0.7);
    background: rgba(109, 40, 217, 0.1);
    padding: 4px 8px;
    border-radius: 999px;
}

.designer-dashboard .project-panel--actions .project-actions {
    margin: 0;
}

.designer-dashboard .project-panel--info .project-info {
    margin-bottom: 10px;
}

.designer-dashboard .project-panel--ai .ai-form {
    margin-top: 8px;
}

.designer-dashboard .ai-tools {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.designer-dashboard .ai-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.designer-dashboard .ai-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.designer-dashboard .ai-chip {
    border: 1px solid rgba(109, 40, 217, 0.25);
    background: rgba(109, 40, 217, 0.08);
    color: rgba(35, 15, 80, 0.9);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.designer-dashboard .ai-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(109, 40, 217, 0.4);
}

.designer-dashboard .ai-chip--ghost {
    background: transparent;
    color: rgba(15, 23, 42, 0.7);
    border-style: dashed;
}

.designer-dashboard .ai-counter {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.designer-dashboard .project-panel--ai .form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.designer-dashboard .project-panel--ai .form-group label {
    font-weight: 650;
}

.designer-dashboard .project-panel--ai .form-group input,
.designer-dashboard .project-panel--ai .form-group select,
.designer-dashboard .project-panel--ai .form-group textarea {
    background: #ffffff;
    border: 1px solid rgba(109, 40, 217, 0.18);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.designer-dashboard .project-panel--ai .form-group input:focus,
.designer-dashboard .project-panel--ai .form-group select:focus,
.designer-dashboard .project-panel--ai .form-group textarea:focus {
    border-color: rgba(109, 40, 217, 0.5);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.18);
}

.designer-dashboard .project-panel--assets-ai {
    border-color: rgba(109, 40, 217, 0.2);
    background: rgba(248, 250, 252, 0.95);
}

.asset-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(109, 40, 217, 0.85);
    background: rgba(109, 40, 217, 0.12);
    border: 1px solid rgba(109, 40, 217, 0.2);
}

.designer-dashboard .project-tools {
    display: grid;
    gap: 14px;
}

.designer-dashboard .project-form {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.designer-dashboard .project-form .form-group {
    margin-bottom: 10px;
}

.designer-dashboard .project-form label {
    font-weight: 600;
}

.designer-dashboard .project-form small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
}

.designer-dashboard .project-form select,
.designer-dashboard .project-form input[type="file"],
.designer-dashboard .project-form textarea {
    width: 100%;
}

.designer-dashboard .project-form button {
    width: 100%;
}

.designer-dashboard .assets-list--compact .asset-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
}

.designer-dashboard .asset-info {
    min-width: 0;
    flex: 1;
}

.designer-dashboard .asset-name {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.designer-dashboard .assets-list--compact .asset-icon {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.6);
}

.designer-dashboard .ai-form {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 12px 18px;
    align-items: start;
}

.designer-dashboard .project-panel--ai .ai-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.designer-dashboard .project-panel--ai .ai-card-header h2 {
    margin-bottom: 6px;
}

.designer-dashboard .project-panel--ai .ai-card-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.designer-dashboard .project-panel--ai .ai-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(109, 40, 217, 0.12);
    color: rgba(109, 40, 217, 0.9);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(109, 40, 217, 0.2);
}

.designer-dashboard .project-panel--ai .ai-help {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.designer-dashboard .project-panel--ai .ai-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.designer-dashboard .project-panel--ai .ai-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.designer-dashboard .project-panel--ai .ai-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.designer-dashboard .ai-form .form-group,
.designer-dashboard .ai-form button,
.designer-dashboard .ai-form .ai-status {
    grid-column: 1;
}

.designer-dashboard .ai-form .ai-preview {
    grid-column: 2;
    grid-row: 1 / span 5;
}

.designer-dashboard .ai-form .ai-preview img {
    max-height: 280px;
    object-fit: cover;
}

.designer-dashboard .ai-status {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.7);
}

.designer-dashboard .ai-preview img {
    display: block;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
}

.designer-dashboard .detail-main .project-panel--ai .ai-form {
    grid-template-columns: 1fr;
}

.designer-dashboard .detail-main .project-panel--ai .ai-preview img {
    max-height: 360px;
}

.designer-dashboard .detail-main .project-panel--ai .ai-preview {
    grid-column: 1;
    grid-row: auto;
    margin-top: 6px;
}

.designer-dashboard .detail-main .project-panel--ai .form-group textarea {
    min-height: 140px;
}


/* Profile */
.profile-page .dashboard-header {
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.12), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(109, 40, 217, 0.18);
    box-shadow: var(--shadow-sm);
}

.profile-page .profile-card {
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f5ff 100%);
}

.profile-page .stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.profile-page .stats-list .stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 14px;
    border: 1px solid rgba(109, 40, 217, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.profile-page .stats-list .stat-item:hover {
    transform: translateY(-1px);
    border-color: rgba(109, 40, 217, 0.24);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.10);
}

.profile-page .stats-list .stat-label {
    font-size: 0.88rem;
    font-weight: 650;
    color: rgba(15, 23, 42, 0.70);
    letter-spacing: 0.2px;
}

.profile-page .stats-list .stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    word-break: break-word;
}

.profile-page .stats-list .stat-item:last-child .stat-value {
    font-size: 1.1rem;
    font-weight: 750;
}

#project-files,
#project-details {
    scroll-margin-top: 90px;
}

.mobile-action-bar {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 120;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(109, 40, 217, 0.18);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    justify-content: center;
}

.mobile-action-bar .btn {
    flex: 1;
}


.admin-breadcrumb {
    margin-bottom: 20px;
}

.admin-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.admin-project-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.admin-project-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-section {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.admin-section h2 {
    margin-bottom: 20px;
}

/* Utilities */
.table-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.inline-form {
    display: inline-block;
}

.u-mt-6 { margin-top: 6px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-30 { margin-top: 30px; }
.u-mt-40 { margin-top: 40px; }
.u-ml-6 { margin-left: 6px; }
.u-ml-10 { margin-left: 10px; }
.u-mr-10 { margin-right: 10px; }
.is-hidden { display: none; }

.list-indented {
    margin: 10px 0 0 20px;
    padding: 0;
}

.pre-wrap {
    white-space: pre-wrap;
}

.chat-conn-indicator {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-muted);
}

.actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.actions-group form {
    margin: 0;
}

.actions-group .btn {
    white-space: nowrap;
}

/* Chat */
.chat-page .project-detail-header {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.12), rgba(139, 92, 246, 0.08));
    border-color: rgba(109, 40, 217, 0.2);
}

.chat-page .detail-card {
    background: #ffffff;
}

.chat-page .messages-list {
    background: linear-gradient(180deg, #fbfaff 0%, #f7f5ff 100%);
    border: 1px solid rgba(109, 40, 217, 0.15);
    border-radius: 18px;
    padding: 20px;
    max-height: 520px;
    overflow-y: auto;
}

.chat-page .message-item {
    max-width: 78%;
}

.chat-page .message-item[data-own="1"] {
    margin-left: auto;
    background: #ede9fe;
    border-color: rgba(109, 40, 217, 0.22);
}

.chat-page .message-admin {
    background: #f3e8ff;
    border-color: rgba(109, 40, 217, 0.24);
}

.chat-page .message-user {
    background: #ffffff;
}

.chat-page .message-header strong {
    margin-right: 8px;
}

.chat-page .message-typing {
    background: rgba(109, 40, 217, 0.12);
    color: #4C1D95;
}

.chat-page #chat-empty-state {
    margin-top: 16px;
    color: var(--text-muted);
    text-align: center;
}

.chat-page .admin-form {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    body {
        padding-bottom: 90px;
    }

    .dashboard {
        padding: 24px 0;
    }

    .dashboard-header h1 {
        font-size: 30px;
    }

    .navbar {
        padding: 16px 0;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .navbar-menu {
        gap: 10px;
    }

    .navbar-menu .btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .navbar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border-top: 1px solid var(--gray-light);
        padding: 12px 0;
        gap: 10px;
        animation: navClose 0.2s ease forwards;
    }

    .navbar.is-open .navbar-menu {
        display: flex;
        animation: navOpen 0.25s ease forwards;
    }

    .navbar.is-open .navbar-menu .btn,
    .navbar.is-open .navbar-menu .nav-link {
        width: 100%;
        text-align: left;
    }

    .navbar.is-open .navbar-toggle .navbar-toggle-icon::before {
        top: 6px;
        transform: rotate(45deg);
    }

    .navbar.is-open .navbar-toggle .navbar-toggle-icon span {
        opacity: 0;
    }

    .navbar.is-open .navbar-toggle .navbar-toggle-icon::after {
        top: 6px;
        transform: rotate(-45deg);
    }

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

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

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-badges {
        gap: 8px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .section-title {
        font-size: 32px;
    }

    .navbar-menu {
        flex-wrap: wrap;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .dashboard-header .btn {
        width: 100%;
        text-align: center;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        width: 100%;
    }

    .filter-buttons::-webkit-scrollbar {
        height: 6px;
    }

    .filter-buttons::-webkit-scrollbar-thumb {
        background: rgba(109, 40, 217, 0.25);
        border-radius: 999px;
    }

    .filter-btn {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .projects-section {
        padding: 18px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .designer-dashboard .overview-layout {
        grid-template-columns: 1fr;
    }

    .designer-dashboard .overview-cards {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .designer-dashboard .summary-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .designer-dashboard .summary-total {
        text-align: left;
    }

    .designer-dashboard .status-row {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: flex-start;
    }

    .designer-dashboard .status-value {
        text-align: left;
    }

    .project-card {
        padding: 16px;
    }

    .designer-dashboard .project-panel {
        padding: 12px 14px;
    }

    .designer-dashboard .project-workspace {
        grid-template-columns: 1fr;
    }

    .designer-dashboard .project-files-scroll {
        max-height: 260px;
    }

    .designer-dashboard .detail-layout {
        grid-template-columns: 1fr;
    }

    .designer-dashboard .chart-bar {
        grid-template-rows: 90px auto auto;
    }

    .designer-dashboard .ai-chip-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .designer-dashboard .ai-chip-row::-webkit-scrollbar {
        height: 6px;
    }

    .designer-dashboard .ai-chip-row::-webkit-scrollbar-thumb {
        background: rgba(109, 40, 217, 0.25);
        border-radius: 999px;
    }

    .asset-item {
        align-items: flex-start;
    }

    .asset-item .btn,
    .asset-badge {
        margin-left: auto;
    }

    .status-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        font-size: 0.7rem;
    }

    .project-header {
        flex-direction: column;
        gap: 10px;
    }

    .project-header .status-badge {
        align-self: flex-start;
    }

    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-form input,
    .filters-form select,
    .filters-form button {
        width: 100%;
    }

    .designer-dashboard .ai-form {
        grid-template-columns: 1fr;
    }

    .designer-dashboard .ai-form .ai-preview {
        grid-column: 1;
        grid-row: auto;
    }

    .designer-dashboard .project-panel--ai .ai-grid {
        grid-template-columns: 1fr;
    }

    .designer-dashboard .project-panel--ai .ai-card-header {
        flex-direction: column;
    }

    .mobile-action-bar {
        display: flex;
    }

    .data-table {
        font-size: 14px;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .project-detail-grid, .admin-project-grid, .profile-grid {
        grid-template-columns: 1fr;
    }

    .project-detail-header {
        padding: 20px;
    }

    .project-detail-header h1 {
        font-size: 26px;
        word-break: break-word;
    }

    .detail-card {
        padding: 18px;
    }

    .wizard-content {
        padding: 20px;
    }

    .wizard-container {
        padding: 20px 0;
    }

    .project-types-grid,
    .features-grid,
    .pricing-grid,
    .benefits-grid,
    .steps-grid,
    .urgency-grid,
    .style-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .project-detail-header .btn {
        width: 100%;
        text-align: center;
    }

    .project-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .project-actions .btn {
        width: 100%;
        text-align: center;
    }

    .messages-list {
        gap: 12px;
    }

    .message-item {
        padding: 12px;
    }

    .message-body {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .message-meta {
        text-align: left;
    }

    .chat-indicators {
        right: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
    }

    .chat-read-indicator,
    .chat-typing-indicator {
        width: fit-content;
        max-width: 100%;
        white-space: nowrap;
    }

    .auth-box {
        padding: 24px 18px;
    }

    .auth-form .form-group input,
    .auth-form .form-group textarea,
    .auth-form .form-group select {
        font-size: 16px;
    }

    .chat-page .messages-list {
        padding: 14px;
        max-height: 60vh;
    }

    .chat-page .message-item {
        max-width: 92%;
    }

    .chat-page .admin-form textarea,
    .chat-page .admin-form input,
    .chat-page .admin-form select {
        font-size: 16px;
    }

    .chat-page .admin-form .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 14px;
    }

    .navbar-brand h1 {
        font-size: 22px;
    }

    .dashboard-header h1 {
        font-size: 26px;
    }

    .stat-card {
        padding: 18px;
        gap: 14px;
    }

    .stat-icon {
        font-size: 30px;
    }

    .stat-value {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

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

.review-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7f5ff 100%);
    border: 1px solid rgba(109, 40, 217, 0.18);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    border-color: rgba(109, 40, 217, 0.35);
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.review-name {
    font-weight: 700;
}

.review-role {
    font-size: 12px;
    color: var(--text-muted);
}

.review-quote {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 48px;
    color: rgba(109, 40, 217, 0.12);
    font-weight: 700;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.review-date {
    color: var(--text-muted);
    font-size: 12px;
}

.review-ratings {
    display: grid;
    gap: 10px;
    margin-bottom: 4px;
}

.rating-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(109, 40, 217, 0.08);
    border: 1px solid rgba(109, 40, 217, 0.18);
    font-size: 14px;
    color: #374151;
}

.rating-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 64px;
}

.rating-value {
    font-weight: 700;
    color: #1f2a44;
}

.review-ratings .stars {
    color: #f59e0b;
    letter-spacing: 2px;
    font-size: 14px;
}

.review-ratings .star {
    opacity: 0.25;
}

.review-ratings .star.filled {
    opacity: 1;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.25);
}

.review-comment {
    color: #1F2937;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    position: relative;
    padding-left: 8px;
}

.review-comment::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6d28d9, #8b5cf6);
    opacity: 0.6;
}
