:root {
    --bg: #171717;
    --bg-2: #202020;
    --card: rgba(255, 255, 255, 0.075);
    --card-2: rgba(255, 255, 255, 0.11);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f7f3e8;
    --muted: #c7c0b4;
    --orange: #ff7a18;
    --orange-2: #ff9a3d;
    --danger: #ff5c5c;
    --success: #4ade80;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 24, 0.12), transparent 30%),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04), transparent 28%),
        linear-gradient(135deg, #171717, #222, #161616);
    color: var(--text);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

.site-header,
.app-header {
    height: 76px;
    padding: 0 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(20, 20, 20, 0.68);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 20px;
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange), #ffb347);
    display: inline-block;
    position: relative;
    box-shadow: 0 0 28px rgba(255, 122, 24, 0.45);
}

.brand-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #242424;
    left: 10px;
    top: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--muted);
    font-weight: 700;
}

.nav-links a:hover {
    color: white;
}

.btn {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 15px 24px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    border-color: rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 14px 45px rgba(255, 122, 24, 0.35);
}

.btn.glass {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.btn.small {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.btn.full {
    width: 100%;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 900;
    color: #ffd1a3;
    background: rgba(255, 122, 24, 0.16);
    border: 1px solid rgba(255, 122, 24, 0.35);
}

/* Landing */
.landing {
    padding-bottom: 90px;
}

.hero {
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 80px 24px;
}

.hero h1 {
    margin: 28px 0 22px;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.95;
    letter-spacing: -5px;
    font-weight: 900;
    color: #fff8e8;
}

.hero-text {
    max-width: 760px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.6;
    font-weight: 600;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.method-section,
.features-section,
.rehearsed-section,
.scorecard-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 90px 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 36px;
}

.section-title h2,
.rehearsed-section h2,
.scorecard h2 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -3px;
    margin: 18px 0;
}

.section-title p,
.rehearsed-section p,
.scorecard p {
    color: var(--muted);
    font-size: 18px;
}

.method-grid,
.features-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.method-card,
.feature-card,
.scorecard,
.session-card,
.empty-state,
.side-card,
.new-session-card,
.auth-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.045));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.method-card,
.feature-card {
    padding: 30px;
}

.method-card span {
    color: var(--orange-2);
    font-weight: 900;
}

.method-card h3,
.feature-card h3 {
    font-size: 23px;
    margin: 18px 0 10px;
}

.method-card p,
.feature-card p {
    color: var(--muted);
    line-height: 1.6;
    font-weight: 600;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 122, 24, 0.18);
    border: 1px solid rgba(255, 122, 24, 0.3);
    display: grid;
    place-items: center;
    font-size: 22px;
}

.rehearsed-section {
    text-align: center;
}

.rehearsed-section p {
    max-width: 820px;
    margin: 0 auto 30px;
}

.scorecard {
    padding: 34px;
    max-width: 820px;
    margin: 0 auto;
}

.score-row {
    display: grid;
    grid-template-columns: 110px 1fr 50px;
    gap: 18px;
    align-items: center;
    margin: 22px 0;
    color: var(--muted);
    font-weight: 800;
}

.bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), #ffd19a);
}

.coach-box {
    margin-top: 26px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    color: var(--muted);
}

/* Auth */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-left {
    padding: 42px 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
}

.auth-left h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -3px;
}

.auth-left p {
    max-width: 520px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
}

.auth-left small {
    color: var(--muted);
}

.auth-right {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-card {
    width: min(460px, 100%);
    padding: 34px;
}

.auth-card h2 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -1px;
}

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

.google-btn {
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    margin: 24px 0;
}

.google-btn span {
    color: #4285f4;
    font-weight: 900;
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.auth-card input,
.new-session-card input,
.new-session-card textarea,
.answer-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.07);
    color: white;
    outline: none;
    border-radius: 10px;
    padding: 15px 16px;
    margin-bottom: 14px;
    font-size: 15px;
}

.auth-card input:focus,
.new-session-card input:focus,
.new-session-card textarea:focus,
.answer-form textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.12);
}

.auth-switch {
    text-align: center;
}

.auth-switch a {
    color: #ffd0a0;
    font-weight: 900;
}

/* Dashboard */
.dashboard {
    max-width: 1180px;
    margin: 0 auto;
    padding: 90px 24px;
}

.dashboard-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 44px;
}

.dashboard-head h1 {
    font-size: clamp(44px, 6vw, 74px);
    margin: 16px 0 6px;
    letter-spacing: -4px;
}

.dashboard-head p {
    color: var(--muted);
    font-size: 18px;
    font-weight: 600;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9a9e, #fecf8f);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.signout {
    color: var(--muted);
}

.session-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.session-card {
    padding: 24px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.session-card h3 {
    font-size: 25px;
    margin: 28px 0 10px;
}

.session-card p {
    color: var(--muted);
}

.empty-state {
    padding: 50px;
    text-align: center;
}

/* New Session */
.modal-page {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.new-session-card {
    width: min(780px, 100%);
    padding: 34px;
}

.new-session-card h1 {
    font-size: 36px;
    margin: 0 0 8px;
    letter-spacing: -1px;
}

.new-session-card p {
    color: var(--muted);
    margin-bottom: 26px;
}

.new-session-card label {
    font-size: 13px;
    font-weight: 900;
    color: var(--muted);
    text-transform: uppercase;
    display: block;
    margin: 18px 0 8px;
}

.new-session-card textarea {
    min-height: 110px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

/* Interview Session */
.interview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 44px 24px;
}

.chat-panel {
    min-height: calc(100vh - 150px);
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.045);
    backdrop-filter: blur(22px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.back-link {
    color: var(--muted);
    padding: 20px 22px 0;
    font-weight: 700;
}

.session-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.session-title h2 {
    font-size: 19px;
    margin: 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--orange);
    box-shadow: 0 0 18px var(--orange);
}

.chat-box {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.message-row {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.message-row.user {
    flex-direction: row-reverse;
}

.role-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-weight: 900;
    flex: 0 0 auto;
}

.message-bubble {
    max-width: 72%;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--line);
    color: #fff7eb;
    line-height: 1.55;
    font-weight: 600;
}

.message-row.user .message-bubble {
    background: rgba(255, 122, 24, 0.16);
    border-color: rgba(255, 122, 24, 0.25);
}

.answer-form {
    padding: 18px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 56px;
    gap: 12px;
}

.answer-form textarea {
    min-height: 58px;
    max-height: 180px;
    resize: vertical;
    margin: 0;
}

.send-btn {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: white;
    font-size: 21px;
    cursor: pointer;
    font-weight: 900;
}

.feedback-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.side-card {
    padding: 24px;
}

.side-card h3 {
    margin-top: 0;
}

.side-card p,
.side-card li {
    color: var(--muted);
    line-height: 1.55;
    font-weight: 600;
}

.context-text {
    max-height: 180px;
    overflow-y: auto;
}

.score-circle {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    background: conic-gradient(var(--orange), #ffd29a, rgba(255,255,255,0.12));
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 16px;
}

/* Toast */
.toast-wrap {
    position: fixed;
    right: 20px;
    top: 90px;
    z-index: 999;
    display: grid;
    gap: 10px;
}

.toast {
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.toast.success {
    border-color: rgba(74, 222, 128, 0.5);
}

.toast.danger {
    border-color: rgba(255, 92, 92, 0.5);
}

.toast.warning {
    border-color: rgba(255, 178, 66, 0.5);
}

/* Responsive */
@media (max-width: 950px) {
    .auth-page,
    .interview-layout {
        grid-template-columns: 1fr;
    }

    .auth-left {
        min-height: 420px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 34px;
    }

    .method-grid,
    .features-section,
    .session-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .feedback-panel {
        order: -1;
    }
}

@media (max-width: 640px) {
    .site-header,
    .app-header {
        padding: 0 18px;
    }

    .nav-links {
        gap: 14px;
        font-size: 14px;
    }

    .nav-links a:not(.btn):not(.signout) {
        display: none;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .message-bubble {
        max-width: 86%;
    }

    .score-row {
        grid-template-columns: 1fr;
    }
}

/* Profile mini dashboard */
.dashboard-profile-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.045));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    padding: 28px;
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.profile-mini-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.profile-big-img,
.profile-big-placeholder {
    width: 108px;
    height: 108px;
    border-radius: 28px;
    object-fit: cover;
    flex: 0 0 auto;
}

.profile-big-placeholder {
    background: linear-gradient(135deg, var(--orange), #ffc27b);
    display: grid;
    place-items: center;
    font-size: 40px;
    font-weight: 900;
}

.dashboard-profile-card h1 {
    margin: 14px 0 8px;
    font-size: 38px;
    letter-spacing: -2px;
}

.dashboard-profile-card p {
    color: var(--muted);
    max-width: 650px;
    line-height: 1.6;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.profile-links a {
    color: #ffd0a0;
    font-weight: 800;
}

/* Progress cards */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 42px;
}

.progress-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    backdrop-filter: blur(20px);
}

.progress-card span {
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.progress-card h2 {
    font-size: 34px;
    margin: 12px 0 0;
}

/* Avatar */
.avatar-link {
    display: flex;
}

.avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--line);
}

/* Profile page */
.profile-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 24px 90px;
}

.profile-hero-card {
    border-radius: 30px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.profile-cover {
    height: 160px;
    background:
        radial-gradient(circle at top right, rgba(255,122,24,0.55), transparent 32%),
        linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
}

.profile-main-info {
    padding: 0 30px 30px;
    display: flex;
    gap: 24px;
    align-items: flex-end;
    margin-top: -58px;
}

.profile-main-img,
.profile-main-placeholder {
    width: 132px;
    height: 132px;
    border-radius: 32px;
    border: 4px solid #202020;
    object-fit: cover;
}

.profile-main-placeholder {
    background: linear-gradient(135deg, var(--orange), #ffc27b);
    display: grid;
    place-items: center;
    font-size: 52px;
    font-weight: 900;
}

.profile-info-text {
    flex: 1;
}

.profile-info-text h1 {
    margin: 0 0 8px;
    font-size: 42px;
    letter-spacing: -2px;
}

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

.profile-bio {
    max-width: 700px;
    line-height: 1.6;
}

.profile-location {
    color: #ffd0a0;
    font-weight: 800;
}

.profile-side-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.skill-list span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,122,24,0.15);
    border: 1px solid rgba(255,122,24,0.25);
    color: #ffd0a0;
    font-size: 13px;
    font-weight: 800;
}

.profile-links-card,
.recent-section,
.admin-table-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.external-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.external-links a,
.external-links span {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line);
    color: #ffd0a0;
    font-weight: 800;
}

/* New session select */
.select-input {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.07);
    color: white;
    outline: none;
    border-radius: 10px;
    padding: 15px 16px;
    margin-bottom: 14px;
    font-size: 15px;
}

.select-input option {
    background: #202020;
}

/* Chat updates */
.answer-form {
    grid-template-columns: 1fr 54px 56px;
}

.mic-btn {
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 21px;
    cursor: pointer;
    border: 1px solid var(--line);
}

.mic-btn.recording {
    background: #ef4444;
    animation: pulseMic 1s infinite;
}

@keyframes pulseMic {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Inline Feedback styling for user bubbles */
.user-feedback-bubble {
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    font-size: 14px;
}

.feedback-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 122, 24, 0.15);
    overflow: hidden;
}

.feedback-details summary {
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
    color: #ffd0a0;
    user-select: none;
    outline: none;
    transition: background 0.2s ease;
}

.feedback-details summary:hover {
    background: rgba(255, 122, 24, 0.1);
}

.feedback-content {
    padding: 14px;
    border-top: 1px solid rgba(255, 122, 24, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.5;
}

.feedback-content p {
    margin: 0;
    color: #ffdcb5;
}

.feedback-content strong {
    color: #ffffff;
    font-weight: 700;
}

/* --- Premium 3D Style Extender (Theme Preserved) --- */

/* Enable 3D rendering context on container wrappers */
.session-grid, .method-grid, .progress-grid, .features-section, .interview-layout, .auth-page {
    perspective: 1200px;
}

/* Extruded Bevel & Shadow Depth on all primary cards */
.method-card,
.feature-card,
.scorecard,
.session-card,
.empty-state,
.side-card,
.new-session-card,
.auth-card,
.dashboard-profile-card,
.progress-card,
.profile-hero-card,
.profile-links-card,
.recent-section,
.admin-table-card {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s ease;
    transform-style: preserve-3d;
    /* Inset highlights on top-left, shadows on bottom-right to create 3D bevel */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Hover Pop-out & Tilt Effect */
.method-card:hover,
.feature-card:hover,
.session-card:hover,
.side-card:hover,
.progress-card:hover,
.dashboard-profile-card:hover {
    transform: translateY(-8px) scale(1.02) rotateX(2deg) rotateY(-2deg);
    border-color: rgba(255, 122, 24, 0.35);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 10px 30px rgba(255, 122, 24, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 1px 0 0 rgba(255, 255, 255, 0.1);
}

/* SATISFYING PHYSICAL 3D BUTTONS */
.btn,
.send-btn,
.mic-btn,
.nav-links a.btn,
.form-actions button {
    position: relative;
    transition: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(-3px);
    transform-style: preserve-3d;
}

/* Extruded physical 3D button sides */
.send-btn {
    box-shadow: 
        0 3px 0 #b34a00,
        0 8px 16px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 122, 24, 0.4);
}

.mic-btn {
    box-shadow: 
        0 3px 0 rgba(255, 255, 255, 0.05),
        0 8px 16px rgba(0, 0, 0, 0.3);
}

.mic-btn.recording {
    background: #ef4444 !important;
    box-shadow: 
        0 3px 0 #991b1b,
        0 8px 16px rgba(239, 68, 68, 0.35) !important;
}

.btn, .nav-links a.btn, .form-actions button.btn-primary {
    box-shadow: 
        0 3px 0 #b34a00,
        0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Active "Press down" physical state */
.btn:active,
.send-btn:active,
.mic-btn:active,
.nav-links a.btn:active,
.form-actions button:active {
    transform: translateY(1px);
}

.send-btn:active, .btn:active, .nav-links a.btn:active {
    box-shadow: 
        0 1px 0 #b34a00,
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.mic-btn:active {
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.mic-btn.recording:active {
    box-shadow: 
        0 1px 0 #991b1b,
        0 2px 4px rgba(239, 68, 68, 0.2) !important;
}

/* Chat bubble 3D depth */
.message-bubble {
    transform-style: preserve-3d;
    transform: translateZ(5px);
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.message-row.user .message-bubble {
    box-shadow: 
        0 6px 16px rgba(255, 122, 24, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glass Spherical Score Orb */
.score-circle {
    background: radial-gradient(circle at 30% 30%, #ffdcb2 0%, var(--orange) 65%, #9e3e00 100%) !important;
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(255, 122, 24, 0.25),
        inset 0 4px 6px rgba(255, 255, 255, 0.4),
        inset 0 -6px 8px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: perspective(600px) translateZ(15px);
    font-weight: 900;
}

/* Collapsible inline details 3D card */
.feedback-details {
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Subtle 3D shadow on input fields */
input, textarea, select {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Cute Lamp Login Redesign scoped styles */

/* Root variable overrides for the lamp login page */
.lamp-login-page {
    --bg-lamp-login: #0f172a; /* Deep elegant dark navy/slate background */
    --card-glow-color: #4ade80; /* Vibrant light green */
    --card-glow-color-rgb: 74, 222, 128;
    --tongue: #f87171;
    --btn-green: #22c55e;
    --btn-green-hover: #16a34a;
    --btn-green-shadow: #14532d;
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.1);
    
    background: 
        radial-gradient(circle at 80% 20%, rgba(74, 222, 128, 0.08), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(74, 222, 128, 0.05), transparent 40%),
        linear-gradient(135deg, #090d16, #0f172a, #0b0f19) !important;
    min-height: 100vh;
    display: grid !important;
    grid-template-columns: 1.1fr 0.9fr !important;
    align-items: center;
    position: relative;
    padding: 0 40px;
    box-sizing: border-box;
}

/* absolute positioning brand link for lamp page */
.brand.auth-brand {
    position: absolute;
    top: 40px;
    left: 70px;
    z-index: 10;
    margin: 0;
}

/* Lamp Section container styling */
.lamp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 60px;
    box-sizing: border-box;
    border-right: none !important; /* Remove right border default */
}

.lamp-svg {
    max-height: 550px;
    width: 100%;
    overflow: visible !important;
}

/* Lamp SVG details and state styles */
.lamp-shade {
    fill: #2d4233;
    stroke: #1f2937;
    stroke-width: 1.5;
    transition: fill 0.35s ease, filter 0.35s ease;
}

.light-beam {
    transition: opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}

/* Face states toggling */
.face {
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.face-on {
    opacity: 1;
}

.face-off {
    opacity: 0;
}

/* Toggle interactions (lamp-on/lamp-off page state overrides) */
.lamp-on .lamp-shade {
    fill: #86efac;
    filter: drop-shadow(0 0 25px rgba(134, 239, 172, 0.65)) 
            drop-shadow(0 0 10px rgba(134, 239, 172, 0.45));
}

.lamp-on .light-beam {
    opacity: 1;
}

.lamp-on .face-on {
    opacity: 1;
}

.lamp-on .face-off {
    opacity: 0;
}

.lamp-off .lamp-shade {
    fill: #2d4233;
    filter: none;
}

.lamp-off .light-beam {
    opacity: 0;
}

.lamp-off .face-on {
    opacity: 0;
}

.lamp-off .face-off {
    opacity: 1;
}

/* Pull Cord styling & animation */
.pull-cord {
    transition: transform 0.15s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    cursor: pointer;
}

.pull-cord:hover .cord-handle {
    filter: brightness(1.15);
    transform: scale(1.05);
}

.pull-cord .cord-handle {
    transition: filter 0.2s ease, transform 0.2s ease;
    transform-origin: 125px 295px;
}

.pull-cord.pulled {
    transform: translateY(18px);
}

.neon-card {
    background: rgba(17, 24, 39, 0.75) !important;
    border: 2px solid var(--card-glow-color) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 0 30px rgba(var(--card-glow-color-rgb), 0.25),
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
    padding: 48px 40px !important;
    backdrop-filter: blur(16px);
    
    /* Initially hidden when the lamp is off */
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96) translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* Shown when the lamp is on */
.lamp-on .neon-card {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.neon-card h2 {
    font-size: 36px !important;
    font-weight: 800 !important;
    letter-spacing: -1.5px !important;
    margin-bottom: 6px !important;
    text-align: left;
    color: #ffffff !important;
}

.neon-card .subtitle {
    margin-bottom: 32px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
}

/* Form group and inputs styling */
.lamp-login-page .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: left;
}

.lamp-login-page .input-label {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.neon-card input {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    padding: 16px !important;
    font-size: 15px !important;
    width: 100% !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.neon-card input::placeholder {
    color: #475569 !important;
    font-weight: 500;
}

.neon-card input:focus {
    border-color: var(--card-glow-color) !important;
    box-shadow: 
        0 0 0 3px rgba(74, 222, 128, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* Button & Link styles */
.neon-card .login-btn {
    background: var(--btn-green) !important;
    color: #052e16 !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    border: 1px solid rgba(0,0,0,0.15) !important;
    box-shadow: 
        0 4px 0 var(--btn-green-shadow),
        0 8px 16px rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-top: 10px !important;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease !important;
}

.neon-card .login-btn:hover {
    background: var(--btn-green-hover) !important;
}

.neon-card .login-btn:active {
    transform: translateY(3px) !important;
    box-shadow: 
        0 1px 0 var(--btn-green-shadow),
        0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Form footer and links */
.lamp-login-page .form-footer {
    margin-top: 18px;
    text-align: center;
}

.lamp-login-page .forgot-link {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.lamp-login-page .forgot-link:hover {
    color: #94a3b8;
}

.neon-card .google-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    height: 50px !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    margin: 20px 0 !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

.neon-card .google-btn:hover {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.neon-card .google-btn svg {
    margin-right: 12px;
}

.lamp-login-page .auth-switch {
    font-size: 14px !important;
    color: #64748b !important;
    margin-top: 24px !important;
}

.lamp-login-page .auth-switch a {
    color: var(--card-glow-color) !important;
    font-weight: 700 !important;
}

.lamp-login-page .auth-switch a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .lamp-login-page {
        grid-template-columns: 1fr 1fr !important;
        padding: 0 20px;
    }
    .brand.auth-brand {
        left: 40px;
    }
}

@media (max-width: 768px) {
    .lamp-login-page {
        grid-template-columns: 1fr !important;
        justify-content: center;
        padding: 80px 20px 40px 20px;
    }
    .brand.auth-brand {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 40px;
        justify-content: center;
    }
    .lamp-container {
        display: none !important; /* Hide lamp on small screens for better UI focus */
    }
    .neon-card {
        padding: 36px 24px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: scale(1) translateY(0) !important;
    }
}

/* Lamp Helper hint button styling */
.lamp-container {
    position: relative;
}

.lamp-helper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lamp-helper-btn {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 
        0 4px 12px rgba(74, 222, 128, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    animation: pulseHelper 2.5s infinite;
}

.lamp-helper-btn:hover {
    background: rgba(74, 222, 128, 0.16);
    border-color: rgba(74, 222, 128, 0.5);
    transform: scale(1.05);
    box-shadow: 
        0 6px 20px rgba(74, 222, 128, 0.25),
        0 12px 40px rgba(0, 0, 0, 0.4);
}

.lamp-helper-btn:active {
    transform: scale(0.98);
}

.lamp-on .lamp-helper {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(15px);
}

@keyframes pulseHelper {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(74, 222, 128, 0.15),
            0 10px 30px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(74, 222, 128, 0.35),
            0 10px 30px rgba(0, 0, 0, 0.3);
        border-color: rgba(74, 222, 128, 0.45);
    }
}

/* --- Sliding Sign In / Sign Up Page (Theme Preserved) --- */

.auth-page-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    padding: 40px 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 24, 0.08), transparent 35%),
        linear-gradient(135deg, #171717, #202020, #151515);
    font-family: 'Montserrat', sans-serif;
}

.auth-brand-v2 {
    margin-bottom: 24px !important;
    position: relative;
    z-index: 100;
}

.container-v2 {
    background-color: rgba(23, 23, 23, 0.85);
    border-radius: 30px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 122, 24, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 480px;
    backdrop-filter: blur(20px);
}

.container-v2 p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    margin: 20px 0;
    color: #c7c0b4;
}

.container-v2 span {
    font-size: 12px;
    color: #888888;
}

.container-v2 a {
    color: #ffd0a0;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
    transition: color 0.2s ease;
}

.container-v2 a:hover {
    color: var(--orange);
}

.container-v2 button {
    background-color: var(--orange);
    color: #fff;
    font-size: 12px;
    padding: 10px 45px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 3px 0 #b34a00,
        0 8px 16px rgba(0, 0, 0, 0.35);
}

.container-v2 button:active {
    transform: translateY(2px);
    box-shadow: 
        0 1px 0 #b34a00,
        0 2px 4px rgba(0, 0, 0, 0.2);
}

.container-v2 button.hidden {
    background-color: transparent;
    border-color: #fff;
    box-shadow: none;
}

.container-v2 button.hidden:active {
    transform: translateY(1px);
}

.container-v2 form {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
}

.container-v2 input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    margin: 8px 0;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.container-v2 input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15);
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container-v2.active .sign-in {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.sign-up {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container-v2.active .sign-up {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: move 0.6s;
}

@keyframes move {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.social-icons {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.social-icons a {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    color: #ffd0a0;
}

.social-icons a:hover {
    border-color: var(--orange);
    color: #fff;
    background: rgba(255, 122, 24, 0.15);
    transform: translateY(-2px);
}

.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    z-index: 1000;
}

.container-v2.active .toggle-container {
    transform: translateX(-100%);
}

.toggle {
    background-color: var(--orange);
    height: 100%;
    background: linear-gradient(135deg, var(--orange), #ff9c3a);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.container-v2.active .toggle {
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: all 0.6s ease-in-out;
}

.toggle-left {
    transform: translateX(-200%);
}

.container-v2.active .toggle-left {
    transform: translateX(0);
}

.toggle-right {
    right: 0;
    transform: translateX(0);
}

.container-v2.active .toggle-right {
    transform: translateX(200%);
}

.container-v2 .mobile-toggle {
    display: none;
}

/* Responsive auth card adjustments */
@media (max-width: 768px) {
    .container-v2 {
        min-height: 580px;
        width: 100%;
    }
    
    .form-container {
        width: 100%;
    }
    
    .sign-in {
        z-index: 5;
        opacity: 1;
    }
    
    .sign-up {
        z-index: 1;
        opacity: 0;
    }
    
    .container-v2.active .sign-in {
        transform: none;
        opacity: 0;
        z-index: 1;
    }
    
    .container-v2.active .sign-up {
        transform: none;
        opacity: 1;
        z-index: 5;
    }
    
    .toggle-container {
        display: none !important; /* Hide toggle overlays on mobile for layout ease */
    }
    
    /* Add a simple toggle link on mobile forms since the overlay slider is hidden */
    .container-v2 .mobile-toggle {
        display: block;
        margin-top: 20px;
        font-size: 14px;
        color: #c7c0b4;
    }
    
    .container-v2 .mobile-toggle a {
        color: var(--orange);
        font-weight: 700;
        margin-left: 5px;
    }
}
