:root {
    --brand-900: #0f172a;
    --brand-800: #1e293b;
    --brand-700: #334155;
    --brand-600: #475569;
    --accent: #f97316;
    --accent-2: #fb923c;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: rgba(148, 163, 184, 0.22);
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
    font-synthesis-weight: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 45%, #e2e8f0 100%);
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.site-shell::before,
.site-shell::after {
    content: '';
    position: fixed;
    width: 22rem;
    height: 22rem;
    border-radius: 9999px;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

.site-shell::before {
    top: -8rem;
    left: -8rem;
    background: rgba(249, 115, 22, 0.28);
}

.site-shell::after {
    bottom: -8rem;
    right: -8rem;
    background: rgba(37, 99, 235, 0.16);
}

.site-shell > * {
    position: relative;
    z-index: 1;
}

.page-wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    text-decoration: none;
}

.brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.35);
}

.brand-copy strong {
    display: block;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.brand-copy span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1.5rem;
    align-items: stretch;
}

.hero-panel,
.card-panel {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 2rem;
    min-height: 100%;
    color: var(--text-primary);
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 28%);
}

.hero-visual {
    margin-top: 1.4rem;
    padding: 1rem;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.97), rgba(30, 41, 59, 0.92));
    color: white;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 50px rgba(15, 23, 42, 0.18);
}

.hero-visual-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-visual-head strong {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.hero-visual-head span {
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.78);
}

.hero-phone-shell {
    margin-top: 1rem;
    border-radius: 22px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-phone-screen {
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-900);
}

.hero-phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.hero-phone-field {
    height: 3.3rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    border: 1px solid rgba(148, 163, 184, 0.28);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.hero-phone-button {
    margin-top: 0.85rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.3);
}

.hero-visual-copy {
    margin-top: 0.95rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.84rem;
    color: rgba(226, 232, 240, 0.78);
}

.hero-visual-copy strong {
    display: block;
    color: white;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 9999px;
    color: #9a3412;
    background: rgba(251, 146, 60, 0.16);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--brand-900);
}

.hero-description {
    margin: 1rem 0 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 34rem;
}

.hero-points {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.75rem;
}

.hero-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-point-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(37, 99, 235, 0.12));
    color: var(--accent);
    flex-shrink: 0;
}

.hero-point strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.hero-point span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-panel {
    padding: 1.4rem;
}

.form-panel {
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.page-title {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--brand-900);
}

.page-subtitle {
    margin: 0.6rem 0 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.alert-box {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}

.alert-box ul {
    margin: 0;
    padding-left: 1.2rem;
}

.alert-box li + li {
    margin-top: 0.35rem;
}

.field-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.field-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field label {
    font-weight: 600;
    color: var(--brand-800);
    font-size: 0.93rem;
}

.input,
.file-input,
.textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.95rem 1rem;
    color: var(--brand-900);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.textarea {
    min-height: 5.25rem;
    resize: vertical;
}

.input:focus,
.file-input:focus,
.textarea:focus {
    border-color: rgba(249, 115, 22, 0.55);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    transform: translateY(-1px);
}

.input::placeholder,
.textarea::placeholder {
    color: #94a3b8;
}

.helper-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.button-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.35rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--brand-800);
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(148, 163, 184, 0.22);
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 9999px;
    background: rgba(249, 115, 22, 0.1);
    color: #9a3412;
    font-weight: 600;
    font-size: 0.9rem;
}

.listing-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.profile-card {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    text-decoration: none;
    color: inherit;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
}

.profile-card .profile-media {
    position: relative;
}

.profile-card .profile-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.22));
}

.profile-media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(37, 99, 235, 0.14));
    overflow: hidden;
}

.profile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-body {
    padding: 1rem 1rem 1.15rem;
}

.profile-name {
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.35;
    color: var(--brand-900);
}

.profile-meta {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
}

.profile-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.profile-avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(37, 99, 235, 0.16));
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-specs {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.spec-row {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.spec-row span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.spec-row strong {
    color: var(--brand-900);
    font-size: 1rem;
}

.empty-state {
    padding: 2rem;
    text-align: center;
    border-radius: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
}

.mini-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--brand-700);
    font-weight: 600;
    text-decoration: none;
}

.mini-nav:hover {
    color: var(--accent);
}

.pagination-wrap {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
}

[aria-label="Pagination Navigation"] {
    display: flex;
    justify-content: center;
    width: 100%;
}

[aria-label="Pagination Navigation"] > :is(div, nav) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

[aria-label="Pagination Navigation"] a,
[aria-label="Pagination Navigation"] span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    min-height: 2.3rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.84);
    color: var(--brand-700);
    text-decoration: none;
    font-size: 0.92rem;
}

[aria-label="Pagination Navigation"] span[aria-current="page"] {
    background: linear-gradient(135deg, var(--accent), #ef4444);
    color: white;
    border-color: transparent;
}

@media (max-width: 900px) {
    .hero-layout,
    .profile-detail,
    .field-grid--two {
        grid-template-columns: 1fr;
    }

    .app-topbar,
    .listing-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .page-wrap {
        width: min(100% - 1rem, 1120px);
        padding-top: 1rem;
    }

    .hero-panel,
    .card-panel {
        border-radius: 22px;
    }

    .hero-panel,
    .card-panel,
    .form-panel {
        padding: 1.1rem;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .hero-visual {
        margin-top: 1rem;
        padding: 0.85rem;
        border-radius: 22px;
    }

    .hero-phone-shell {
        padding: 0.85rem;
    }

    .hero-phone-screen {
        padding: 0.85rem;
    }

    .hero-point {
        padding: 0.8rem 0.9rem;
    }

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

    .profile-card {
        border-radius: 20px;
    }

    .profile-body {
        padding: 0.9rem;
    }

    .profile-detail {
        gap: 1rem;
    }
}

.auth-dark-body {
    background:
        radial-gradient(circle at 20% 12%, rgba(46, 16, 101, 0.35), transparent 35%),
        radial-gradient(circle at 84% 10%, rgba(30, 64, 175, 0.3), transparent 36%),
        linear-gradient(180deg, #030712 0%, #070b14 52%, #090f1a 100%);
    color: #e2e8f0;
}

.auth-dark-body .site-shell::before,
.auth-dark-body .site-shell::after {
    opacity: 0.3;
    filter: blur(84px);
}

.auth-dark-body .page-wrap {
    width: min(100%, 640px);
    padding: 2.2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-auth-wrap {
    width: 100%;
}

.mobile-auth-card {
    max-width: 430px;
    margin: 0 auto;
    border-radius: 18px;
    padding: 1.1rem;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 28px 55px rgba(2, 6, 23, 0.62);
    backdrop-filter: blur(10px);
}

.mobile-auth-promo {
    margin-bottom: 1rem;
}

.mobile-auth-poster {
    border-radius: 14px;
    min-height: 255px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(76, 29, 149, 0.3), rgba(30, 27, 75, 0.78)),
        radial-gradient(circle at 18% 18%, rgba(236, 72, 153, 0.48), transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.55), transparent 44%),
        linear-gradient(135deg, #4c1d95 0%, #6d28d9 52%, #312e81 100%);
    position: relative;
    overflow: hidden;
}

.mobile-auth-poster::before,
.mobile-auth-poster::after {
    content: '';
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
}

.mobile-auth-poster::before {
    width: 170px;
    height: 170px;
    right: -35px;
    bottom: -25px;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.26), rgba(253, 224, 71, 0));
}

.mobile-auth-poster::after {
    width: 150px;
    height: 150px;
    left: -48px;
    top: -38px;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.2), rgba(125, 211, 252, 0));
}

.mobile-auth-poster-tag,
.mobile-auth-poster-title,
.mobile-auth-poster-subtitle {
    position: relative;
    z-index: 1;
}

.mobile-auth-poster-tag {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.8rem;
    color: #0f172a;
    background: #fde047;
}

.mobile-auth-poster-title {
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    font-size: 1.18rem;
}

.mobile-auth-poster-subtitle {
    font-size: 0.9rem;
    color: rgba(241, 245, 249, 0.9);
}

.mobile-auth-copy {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.98rem;
    color: rgba(226, 232, 240, 0.9);
}

.mobile-auth-form {
    margin-top: 0.9rem;
}

.mobile-input-wrap {
    height: 3.2rem;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.82rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.62);
}

.mobile-input-wrap:focus-within {
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.mobile-input-icon {
    font-size: 1rem;
    line-height: 1;
    color: #38bdf8;
}

.mobile-auth-input {
    flex: 1;
    border: 0;
    outline: none;
    color: #e2e8f0;
    background: transparent;
    font-size: 1rem;
}

.mobile-auth-input::placeholder {
    color: rgba(148, 163, 184, 0.86);
}

.mobile-auth-btn,
.mobile-auth-secondary {
    width: 100%;
    height: 3.2rem;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0.8rem;
}

.mobile-auth-btn {
    border: 0;
    color: #e2f1ff;
    background: linear-gradient(180deg, #1d9bf0 0%, #1684dc 100%);
    box-shadow: 0 14px 26px rgba(22, 132, 220, 0.3);
    cursor: pointer;
}

.mobile-auth-secondary {
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.76);
}

.mobile-auth-alert {
    margin-top: 0.9rem;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    background: rgba(127, 29, 29, 0.28);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
    font-size: 0.9rem;
}

.mobile-auth-alert ul {
    margin: 0;
    padding-left: 1rem;
}

.mobile-auth-footer {
    margin: 8rem 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.86);
}

@media (max-width: 640px) {
    .auth-dark-body .page-wrap {
        padding: 1.15rem 0.85rem 1.7rem;
    }

    .mobile-auth-card {
        padding: 0.9rem;
        border-radius: 16px;
    }

    .mobile-auth-poster {
        min-height: 230px;
    }

    .mobile-auth-footer {
        margin-top: 5rem;
    }
}
