/* ============================================
   DondeEnsayo — Design System
   Landing + Auth pages
   ============================================ */

:root {
    --de-bg:           #0B0B17;
    --de-surface:      #111120;
    --de-card:         #181828;
    --de-card-hover:   #1E1E32;
    --de-border:       rgba(124, 58, 237, 0.18);
    --de-border-light: rgba(255, 255, 255, 0.07);
    --de-primary:      #7C3AED;
    --de-primary-glow: rgba(124, 58, 237, 0.35);
    --de-secondary:    #06B6D4;
    --de-accent:       #F59E0B;
    --de-gradient:     linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
    --de-gradient-r:   linear-gradient(135deg, #06B6D4 0%, #7C3AED 100%);
    --de-text:         #F1F5F9;
    --de-muted:        #94A3B8;
    --de-radius:       18px;
    --de-radius-sm:    10px;
    --de-shadow:       0 8px 32px rgba(0, 0, 0, 0.45);
    --de-shadow-glow:  0 8px 40px rgba(124, 58, 237, 0.25);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--de-bg);
    color: var(--de-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    margin: 0;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* ── Navbar ── */
.de-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(11, 11, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--de-border-light);
    transition: background 0.3s;
}

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

.de-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    background: var(--de-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.de-brand img {
    height: 36px;
    width: 36px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.de-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.de-nav-links a {
    color: var(--de-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.de-nav-links a:hover {
    color: var(--de-text);
    background: rgba(255,255,255,0.06);
}

.de-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ── Buttons ── */
.de-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
    border: none;
}

.de-btn-ghost {
    background: transparent;
    color: var(--de-muted);
    border: 1.5px solid var(--de-border-light);
}

.de-btn-ghost:hover {
    color: var(--de-text);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}

.de-btn-primary {
    background: var(--de-gradient);
    color: #fff;
    box-shadow: var(--de-shadow-glow);
}

.de-btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 12px 48px rgba(124, 58, 237, 0.35);
}

.de-btn-outline {
    background: transparent;
    color: var(--de-primary);
    border: 1.5px solid var(--de-primary);
}

.de-btn-outline:hover {
    background: var(--de-primary);
    color: #fff;
    transform: translateY(-1px);
}

.de-btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

.de-btn-secondary {
    background: rgba(6, 182, 212, 0.12);
    color: var(--de-secondary);
    border: 1.5px solid rgba(6, 182, 212, 0.3);
}

.de-btn-secondary:hover {
    background: var(--de-secondary);
    color: #fff;
    transform: translateY(-1px);
}

/* ── Hero ── */
.de-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.de-hero-bg {
    position: absolute;
    inset: -10px;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(6,182,212,0.12) 0%, transparent 60%),
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('/lib/images/background.jpg') center bottom/cover no-repeat;
    filter: blur(3px);
    z-index: 0;
}

.de-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}

.de-hero-orb-1 {
    width: 480px;
    height: 480px;
    background: var(--de-primary);
    top: -80px;
    left: -100px;
}

.de-hero-orb-2 {
    width: 360px;
    height: 360px;
    background: var(--de-secondary);
    bottom: -40px;
    right: -60px;
}

.de-hero .container { position: relative; z-index: 1; }

.de-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--de-primary-light, #A78BFA);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.de-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

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

.de-hero-subtitle {
    font-size: 1.15rem;
    color: var(--de-muted);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.de-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.de-hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--de-border-light);
    flex-wrap: wrap;
}

.de-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    background: var(--de-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.de-stat-label {
    font-size: 0.8rem;
    color: var(--de-muted);
    margin-top: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Sections ── */
.de-section {
    padding: 6rem 0;
}

.de-section-alt {
    background: var(--de-surface);
}

.de-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.de-section-label-owner { color: var(--de-secondary); }
.de-section-label-musician { color: var(--de-accent); }
.de-section-label-how { color: var(--de-primary); }

.de-section-title {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.de-section-desc {
    font-size: 1.05rem;
    color: var(--de-muted);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* ── Feature Cards ── */
.de-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.de-feature-card {
    background: var(--de-card);
    border: 1px solid var(--de-border-light);
    border-radius: var(--de-radius);
    padding: 1.75rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.de-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--de-gradient);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.de-feature-card:hover {
    border-color: var(--de-border);
    transform: translateY(-4px);
    box-shadow: var(--de-shadow-glow);
}

.de-feature-card:hover::before { opacity: 0.04; }

.de-feature-card > * { position: relative; z-index: 1; }

.de-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.de-icon-cyan   { background: rgba(6, 182, 212, 0.12); }
.de-icon-purple { background: rgba(124, 58, 237, 0.12); }
.de-icon-amber  { background: rgba(245, 158, 11, 0.12); }
.de-icon-green  { background: rgba(34, 197, 94, 0.12); }
.de-icon-pink   { background: rgba(236, 72, 153, 0.12); }

.de-feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--de-text);
}

.de-feature-desc {
    font-size: 0.875rem;
    color: var(--de-muted);
    line-height: 1.6;
}

/* ── Big feature highlight ── */
.de-feature-highlight {
    background: var(--de-card);
    border: 1px solid var(--de-border-light);
    border-radius: var(--de-radius);
    padding: 2.5rem;
    height: 100%;
}

.de-feature-highlight-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* ── How it works ── */
.de-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    position: relative;
}

.de-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--de-card);
    border: 1px solid var(--de-border-light);
    border-radius: var(--de-radius);
    position: relative;
    transition: all 0.3s;
}

.de-step:hover {
    border-color: var(--de-border);
    transform: translateY(-4px);
    box-shadow: var(--de-shadow);
}

.de-step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--de-gradient);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: var(--de-shadow-glow);
}

.de-step-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.de-step-desc {
    font-size: 0.875rem;
    color: var(--de-muted);
    line-height: 1.6;
}

/* ── Pricing callout ── */
.de-pricing-card {
    background: var(--de-card);
    border: 1px solid var(--de-border);
    border-radius: var(--de-radius);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 560px;
    margin: 0 auto;
}

.de-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--de-gradient);
}

.de-price-amount {
    font-size: 4rem;
    font-weight: 900;
    background: var(--de-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin: 1rem 0 0.25rem;
}

.de-price-label {
    font-size: 0.85rem;
    color: var(--de-muted);
    margin-bottom: 1.5rem;
}

.de-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    text-align: left;
    display: inline-block;
}

.de-pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.925rem;
    color: var(--de-muted);
    padding: 0.4rem 0;
}

.de-pricing-features li .check {
    color: #22C55E;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── PWA Section ── */
.de-pwa-section {
    background: linear-gradient(135deg,
        rgba(124,58,237,0.12) 0%,
        rgba(6,182,212,0.08) 100%);
    border-top: 1px solid var(--de-border-light);
    border-bottom: 1px solid var(--de-border-light);
}

.de-pwa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--de-border-light);
    font-size: 0.85rem;
    color: var(--de-muted);
    margin-bottom: 1.5rem;
}

.de-pwa-icon { font-size: 1.1rem; }

.de-device-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.de-device-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.5rem;
    background: var(--de-card);
    border: 1.5px solid var(--de-border-light);
    border-radius: var(--de-radius-sm);
    text-decoration: none;
    color: var(--de-text);
    transition: all 0.25s;
    cursor: pointer;
}

.de-device-btn:hover {
    border-color: var(--de-border);
    background: var(--de-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--de-shadow);
    color: var(--de-text);
}

.de-device-btn-icon { font-size: 1.6rem; line-height: 1; }

.de-device-btn-text-small {
    font-size: 0.7rem;
    color: var(--de-muted);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.de-device-btn-text-main {
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
}

.de-browser-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: white;
    font-weight: 800;
    font-size: .95rem;
    flex-shrink: 0;
}

.de-pwa-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.de-pwa-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.de-pwa-benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(124,58,237,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.de-pwa-benefit-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.de-pwa-benefit-text span {
    font-size: 0.82rem;
    color: var(--de-muted);
}

/* ── Phone mockup ── */
.de-phone-mockup {
    position: relative;
    width: 280px;
    margin: 0 auto;
}

.de-phone-frame {
    background: var(--de-card);
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
}

.de-phone-frame::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.de-phone-screen {
    background: var(--de-bg);
    border-radius: 30px;
    aspect-ratio: 9/18;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.de-phone-content {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.de-phone-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--de-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    box-shadow: var(--de-shadow-glow);
}

.de-phone-app-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.de-phone-app-desc {
    font-size: 0.7rem;
    color: var(--de-muted);
}

.de-phone-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--de-primary);
    filter: blur(80px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* ── Footer ── */
.de-footer {
    background: var(--de-surface);
    border-top: 1px solid var(--de-border-light);
    padding: 4rem 0 2rem;
}

.de-footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--de-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.de-footer-tagline {
    font-size: 0.85rem;
    color: var(--de-muted);
    max-width: 240px;
    line-height: 1.6;
}

.de-footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--de-muted);
    margin-bottom: 1rem;
}

.de-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.de-footer-links a {
    color: var(--de-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.de-footer-links a:hover { color: var(--de-text); }

.de-footer-divider {
    border: none;
    border-top: 1px solid var(--de-border-light);
    margin: 2.5rem 0 1.5rem;
}

.de-footer-icon-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.de-footer-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--de-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--de-muted);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.de-footer-icon-btn svg {
    width: 22px;
    height: 22px;
}

.de-footer-icon-btn:hover {
    color: var(--de-text);
    background: rgba(255,255,255,0.11);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.de-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--de-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .de-nav-links { display: none; }
    .de-hero { min-height: auto; padding: 4rem 0 3rem; }
    .de-hero-stats { gap: 1.5rem; }
    .de-feature-grid { grid-template-columns: 1fr; }
    .de-steps { grid-template-columns: 1fr; }
    .de-pwa-section .row > div:first-child { margin-bottom: 2.5rem; }
    .de-device-buttons { flex-direction: column; }
    .de-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .de-brand-text { display: none; }
    .de-brand { white-space: normal; }
    .de-nav-actions { gap: .35rem; }
    .de-nav-actions .de-btn { padding: .5rem .9rem; font-size: .82rem; }
}

@media (max-width: 576px) {
    .de-hero-actions { flex-direction: column; align-items: flex-start; }
    .de-pricing-card { padding: 2rem 1.5rem; }
}

/* ============================================
   Auth Pages (Login / Register)
   ============================================ */

.de-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.de-auth-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 35%, rgba(124,58,237,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 65%, rgba(6,182,212,0.10) 0%, transparent 60%),
        var(--de-bg);
    z-index: 0;
}

.de-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: var(--de-card);
    border: 1px solid var(--de-border-light);
    border-radius: var(--de-radius);
    padding: 2.5rem;
    box-shadow: var(--de-shadow);
}

.de-auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.de-auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 0.4rem;
}

.de-auth-subtitle {
    font-size: 0.875rem;
    color: var(--de-muted);
    text-align: center;
    margin-bottom: 2rem;
}

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

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

/* Google button */
.de-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #1f1f1f;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    font-family: inherit;
}

.de-google-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(-1px);
    color: #1f1f1f;
}

.de-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Divider */
.de-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--de-muted);
    font-size: 0.8rem;
}

.de-auth-divider::before,
.de-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--de-border-light);
}

/* Form fields */
.de-form-group {
    margin-bottom: 1.1rem;
}

.de-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--de-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 0.3px;
}

.de-form-input,
.de-form-select {
    width: 100%;
    padding: 0.72rem 1rem;
    background: var(--de-surface);
    border: 1.5px solid var(--de-border-light);
    border-radius: var(--de-radius-sm);
    color: var(--de-text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.de-form-input::placeholder { color: rgba(148,163,184,0.5); }

.de-form-input:focus,
.de-form-select:focus {
    border-color: var(--de-primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.de-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.de-form-select option {
    background: var(--de-card);
    color: var(--de-text);
}

/* Password field wrapper */
.de-form-input-wrapper {
    position: relative;
}

.de-form-input-wrapper .de-form-input {
    padding-right: 3rem;
}

.de-form-eye {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--de-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.de-form-eye:hover { color: var(--de-text); }

/* Region alert */
.de-region-alert {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--de-radius-sm);
    padding: 1rem 1.15rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--de-text);
    line-height: 1.6;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.de-region-alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.de-region-alert a {
    color: var(--de-accent);
    font-weight: 600;
    text-decoration: none;
}

.de-region-alert a:hover { text-decoration: underline; }

/* Submit button */
.de-form-submit {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    background: var(--de-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    box-shadow: var(--de-shadow-glow);
}

.de-form-submit:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.de-form-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* Terms text */
.de-auth-terms {
    font-size: 0.75rem;
    color: var(--de-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
}

.de-auth-terms a {
    color: var(--de-muted);
    text-decoration: underline;
}

.de-auth-terms a:hover { color: var(--de-text); }

/* Back to home */
.de-auth-back {
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--de-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}

.de-auth-back:hover { color: var(--de-text); }

/* Name row */
.de-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media (max-width: 480px) {
    .de-auth-card { padding: 1.75rem 1.25rem; }
    .de-form-row { grid-template-columns: 1fr; }
}

/* ── Onboarding account-type cards ── */
.de-onboarding-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--de-radius);
    border: 2px solid var(--de-border);
    background: var(--de-surface-2);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
    color: var(--de-text);
}

.de-onboarding-card:hover:not(:disabled) {
    border-color: var(--de-primary);
    background: rgba(124,58,237,.07);
    transform: translateY(-2px);
}

.de-onboarding-card.selected {
    border-color: var(--de-primary);
    background: rgba(124,58,237,.12);
    box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}

.de-onboarding-card:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── PWA install buttons (as <button> elements) ── */
button.de-device-btn {
    background: var(--de-card);
    border: 1.5px solid var(--de-border-light);
    font-family: inherit;
    width: 100%;
}

button.de-device-btn.de-pwa-installable {
    border-color: var(--de-primary);
    background: rgba(124,58,237,.08);
}

/* ── PWA install modal ── */
.de-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.de-modal-backdrop.de-modal-open {
    display: flex;
}

.de-modal-box {
    background: var(--de-card);
    border: 1px solid var(--de-border-light);
    border-radius: var(--de-radius);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: var(--de-shadow-lg, 0 25px 50px rgba(0,0,0,.5));
}

.de-modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    color: var(--de-muted);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: .25rem .5rem;
}

.de-modal-close:hover { color: var(--de-text); }
