/* ClimbAI - Modern Minimal Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --dark: #1B1D29;
    --dark-elevated: #22252F;
    --mint: #65DDBF;
    --mint-hover: #7AE5CA;
    --mint-subtle: rgba(101, 221, 191, 0.1);
    --blue: #627FEB;
    --light: #DFF2F6;
    --white: #FFFFFF;
    --gray: #8A8F9E;
    --gray-light: #A5AAB8;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--white);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === GATE PAGE === */
.gate-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, var(--dark) 0%, #161821 100%);
}

.gate-card {
    max-width: 380px;
    width: 100%;
    text-align: center;
}

.gate-logo {
    font-size: 56px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(101, 221, 191, 0.2));
}

.gate-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.gate-subtitle {
    font-size: 15px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

.input-group {
    margin-bottom: 12px;
}

input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--white);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

input[type="email"]::placeholder {
    color: var(--gray);
}

input[type="email"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(101, 221, 191, 0.1);
}

/* === BUTTONS === */
.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--mint-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(101, 221, 191, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.message.success {
    background: var(--mint-subtle);
    border: 1px solid rgba(101, 221, 191, 0.2);
    color: var(--mint);
}

.gate-footer {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
    font-size: 13px;
    line-height: 1.6;
}

.gate-footer a {
    color: var(--mint);
    text-decoration: none;
    font-weight: 500;
}

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

/* === REGISTRATION FORM === */
.reg-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--white);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.reg-input::placeholder {
    color: var(--gray);
}

.reg-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(101, 221, 191, 0.1);
}

.reg-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%238A8F9E%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpolyline points=%276 9 12 15 18 9%27%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.reg-select option {
    background: var(--dark-elevated);
    color: var(--white);
}

.reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.reg-gdpr {
    margin: 16px 0 20px 0;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.reg-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--light);
    line-height: 1.5;
}

.reg-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 1px;
}

.reg-checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--mint);
    border-color: var(--mint);
}

.reg-checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid var(--dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.reg-privacy-text {
    font-size: 12px;
    color: var(--gray);
    margin-top: 10px;
    line-height: 1.5;
}

.reg-privacy-text a {
    color: var(--mint);
    text-decoration: underline;
}

/* === MAIN APP === */
.app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(27, 29, 41, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.header-info {
    display: flex;
    align-items: center;
}

/* Analyses badge - prominent and modern */
.analyses-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(101, 221, 191, 0.12);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(101, 221, 191, 0.2);
}

.analyses-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--mint);
    line-height: 1;
}

.analyses-label {
    font-size: 12px;
    color: var(--gray-light);
    font-weight: 500;
}

.rate-limit-warning .analyses-badge {
    background: rgba(255, 213, 79, 0.12);
    border-color: rgba(255, 213, 79, 0.2);
}

.rate-limit-warning .analyses-count {
    color: #FFD54F;
}

.main-container {
    max-width: 540px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-limit-badge {
    font-size: 10px;
    font-weight: 500;
    color: var(--mint);
    background: rgba(101, 221, 191, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: none;
    letter-spacing: 0;
}

.chat-limit-badge.warning {
    color: #FFD54F;
    background: rgba(255, 213, 79, 0.1);
}

.chat-limit-badge.exhausted {
    color: var(--gray);
    background: rgba(255, 255, 255, 0.05);
}

/* Upload Zone - Compact */
.upload-zone {
    position: relative;
    border: 1.5px dashed rgba(101, 221, 191, 0.25);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.015);
}

.upload-zone:hover {
    border-color: rgba(101, 221, 191, 0.4);
    background: rgba(255, 255, 255, 0.025);
}

.upload-zone.dragover {
    border-color: var(--mint);
    background: var(--mint-subtle);
    border-style: solid;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.upload-text {
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 12px;
    color: var(--gray);
    opacity: 0.7;
}

input[type="file"] {
    display: none;
}

/* Video Display - Adaptive */
.video-container {
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    background: var(--dark-elevated);
}

video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.video-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.video-actions .btn {
    flex: 1;
}

.video-actions .btn-secondary {
    flex: 0.6;
}

/* Initial state: larger video */
.video-section-initial video {
    max-height: 70vh;
}

/* Compact state during/after analysis */
.video-section-compact .video-container {
    max-width: 280px;
    margin: 0 auto;
}

.video-section-compact video {
    max-height: 320px;
}

.video-section-compact .section-title {
    text-align: center;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .video-section-compact .video-container {
        max-width: 320px;
    }

    .video-section-compact video {
        max-height: 360px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px 20px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 32px;
}

.progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mint) 0%, var(--blue) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-percentage {
    font-size: 24px;
    font-weight: 700;
    color: var(--mint);
    margin-bottom: 8px;
}

.loading-text {
    font-size: 14px;
    color: var(--gray-light);
}

.loading-dots {
    display: inline-flex;
    margin-left: 4px;
    gap: 3px;
}

.loading-dots span {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--mint);
    border-radius: 50%;
    animation: dot-pulse 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    30% {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Analysis Results */
#resultsSection .section-title {
    padding-left: 4px;
}

.analysis-content {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Analysis Cards */
.analysis-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}

.analysis-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: var(--mint);
}

.analysis-card.card-warning::before {
    background: #F59E0B;
}

.analysis-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-card-title .card-emoji {
    font-size: 16px;
}

.analysis-card-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--light);
}

.analysis-card-content p {
    margin-bottom: 10px;
}

.analysis-card-content p:last-child {
    margin-bottom: 0;
}

.analysis-card-content strong {
    color: var(--mint);
    font-weight: 600;
}

.analysis-card-content ol,
.analysis-card-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.analysis-card-content li {
    margin-bottom: 6px;
}

.analysis-card-content li:last-child {
    margin-bottom: 0;
}

/* Chat Section */
.chat-container {
    margin-top: 32px;
}

.chat-messages {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 6px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.message-wrapper {
    margin-bottom: 12px;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.5;
}

.message-bubble.user {
    background: var(--mint);
    color: var(--dark);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message-bubble.bot {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 4px;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.chat-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(101, 221, 191, 0.1);
}

.chat-input::placeholder {
    color: var(--gray);
}

.btn-send {
    padding: 12px 20px;
    background: var(--mint);
    border: none;
    border-radius: 10px;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.btn-send:hover {
    background: var(--mint-hover);
    box-shadow: 0 4px 12px rgba(101, 221, 191, 0.25);
}

.btn-send:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-send:disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 640px) {
    .main-container {
        padding: 24px 16px 48px;
    }

    .app-header {
        padding: 0 16px;
        height: 52px;
    }

    .gate-title {
        font-size: 24px;
    }

    .gate-subtitle {
        font-size: 14px;
    }

    video {
        max-height: 220px;
    }

    .analyses-badge {
        padding: 6px 12px;
        gap: 6px;
    }

    .analyses-count {
        font-size: 16px;
    }

    .analyses-label {
        font-size: 11px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(101, 221, 191, 0.3);
    color: var(--white);
}

/* Limit Reached Card */
.limit-reached-card {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.limit-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.limit-reached-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.limit-reached-card p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 4px;
}

.limit-reached-card .reset-info {
    color: var(--mint);
    font-weight: 500;
    margin-top: 16px;
}

/* App Footer */
.app-footer {
    text-align: center;
    padding: 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: auto;
}

.app-footer p {
    font-size: 12px;
    color: var(--gray);
    opacity: 0.7;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}
/* === CAPTURE OPTIONS === */
.capture-options {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .capture-options {
        grid-template-columns: 1fr;
    }
}

.capture-card {
    background: var(--dark-elevated);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.capture-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.capture-primary {
    border-color: var(--mint);
    background: linear-gradient(135deg, var(--dark-elevated) 0%, rgba(101, 221, 191, 0.05) 100%);
}

.capture-primary:hover {
    border-color: var(--mint-hover);
    background: linear-gradient(135deg, var(--dark-elevated) 0%, rgba(101, 221, 191, 0.1) 100%);
}

.capture-secondary {
    background: var(--dark-elevated);
}

.capture-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.capture-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white);
}

.capture-card p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 20px;
}

.btn-large {
    font-size: 16px;
    padding: 14px 32px;
    font-weight: 600;
}

.btn-medium {
    font-size: 14px;
    padding: 12px 24px;
}

.btn-icon {
    display: inline-block;
    color: #FF4444;
    font-size: 12px;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === RECORDING SECTION === */
.recording-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#cameraPreview {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.recording-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
    pointer-events: none;
}

.recording-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.rec-dot {
    width: 12px;
    height: 12px;
    background: #FF4444;
    border-radius: 50%;
    animation: recording-pulse 1.5s infinite;
}

@keyframes recording-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.rec-time {
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.recording-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.btn-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--white);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-circle:hover {
    transform: scale(1.1);
}

.btn-circle:active {
    transform: scale(0.95);
}

.btn-circle-record {
    width: 80px;
    height: 80px;
    border-color: var(--mint);
    background: var(--mint);
}

.btn-circle-record .record-icon {
    color: var(--dark);
    font-size: 32px;
}

.btn-circle-record.recording {
    background: #FF4444;
    border-color: #FF4444;
    animation: recording-button 1.5s infinite;
}

.btn-circle-record.recording .record-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: var(--white);
}

@keyframes recording-button {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-circle-primary {
    border-color: var(--mint);
    background: var(--mint);
    color: var(--dark);
}

.btn-circle-secondary {
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-circle-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* === LOGO === */
.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        height: 28px;
    }
}

/* === TAP TO RECORD (Primary) === */
.tap-to-record {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(101, 221, 191, 0.15);
    border-radius: 24px;
    margin-bottom: 24px;
}

.tap-to-record:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(101, 221, 191, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(101, 221, 191, 0.15);
}

.tap-to-record:hover .record-circle {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(101, 221, 191, 0.4);
}

.tap-to-record:active {
    transform: translateY(0);
}

.tap-to-record:active .record-circle {
    transform: scale(0.95);
}

.record-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mint) 0%, var(--blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(101, 221, 191, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.record-circle::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mint) 0%, var(--blue) 100%);
    opacity: 0.2;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.3;
    }
}

.record-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #1b1d29;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.record-icon-logo {
    width: 80px;
    height: 80px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.record-title-top {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 40px 0;
    letter-spacing: -0.02em;
}

.record-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-top: 32px;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.record-subtitle {
    font-size: 16px;
    color: var(--gray-light);
    margin: 40px 0 0 0;
}

@media (max-width: 768px) {
    .tap-to-record {
        padding: 40px 32px;
        margin-bottom: 20px;
    }

    .record-circle {
        width: 160px;
        height: 160px;
    }

    .record-icon-wrapper {
        width: 100px;
        height: 100px;
    }

    .record-icon-logo {
        width: 64px;
        height: 64px;
    }

    .record-title-top {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .record-title {
        font-size: 28px;
    }

    .record-subtitle {
        font-size: 14px;
        margin-top: 32px;
    }
}

/* === UPLOAD ALTERNATIVE (Secondary - Small) === */
.upload-alternative {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 32px;
}

.upload-text {
    font-size: 14px;
    color: var(--gray);
    margin-right: 8px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--mint);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-link:hover {
    color: var(--mint-hover);
    text-decoration-thickness: 2px;
}

/* === PRIVACY NOTICE === */
.privacy-notice {
    max-width: 500px;
    margin: 0 auto;
    padding: 16px 20px;
    background: rgba(101, 221, 191, 0.05);
    border: 1px solid rgba(101, 221, 191, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.privacy-icon {
    width: 20px;
    height: 20px;
    color: var(--mint);
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-notice p {
    font-size: 12px;
    color: var(--gray-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .privacy-notice {
        font-size: 11px;
    }

    .privacy-icon {
        width: 18px;
        height: 18px;
    }
}

/* === RECORDING TIPS === */
.recording-tips {
    max-width: 500px;
    margin: 32px auto 24px;
    padding: 18px 20px;
    background: rgba(98, 127, 235, 0.05);
    border: 1px solid rgba(98, 127, 235, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.tips-icon {
    width: 22px;
    height: 22px;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.tips-content {
    flex: 1;
}

.tips-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: var(--gray-light);
    line-height: 1.7;
}

.tips-list li {
    margin-bottom: 8px;
    padding-left: 0;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

.tips-list strong {
    color: var(--white);
    font-weight: 500;
}

@media (max-width: 768px) {
    .recording-tips {
        margin: 24px auto 20px;
        padding: 16px 18px;
    }

    .tips-icon {
        width: 20px;
        height: 20px;
    }

    .tips-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .tips-list {
        font-size: 11px;
    }

    .tips-list li {
        margin-bottom: 6px;
    }
}

/* Remove old capture-options styles - keeping for backwards compatibility if needed */
.capture-options {
    display: none;
}

/* Gate Logo Image - Hero moment, make it prominent */
.gate-logo-img {
    height: 130px;
    width: auto;
    display: block;
    margin: 0 auto 32px;
}

@media (max-width: 768px) {
    .gate-logo-img {
        height: 100px;
        margin: 0 auto 24px;
    }
}

/* Fix recording button icon - control visibility of circle vs square */
.record-icon-circle {
    display: inline-block;
    font-size: 32px;
    color: var(--dark);
}

.record-icon-square {
    display: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: var(--white);
}

/* When recording, hide circle and show square */
.btn-circle-record.recording .record-icon-circle {
    display: none;
}

.btn-circle-record.recording .record-icon-square {
    display: inline-block;
}

/* App header logo - visible but balanced with UI */
.logo-img {
    height: 56px !important;
}

@media (max-width: 768px) {
    .logo-img {
        height: 48px !important;
    }
}

/* === FEEDBACK SECTION === */
#feedbackSection {
    background: linear-gradient(135deg, rgba(101, 221, 191, 0.08) 0%, rgba(98, 127, 235, 0.08) 100%);
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    border: 1px solid rgba(101, 221, 191, 0.15);
}

.feedback-container {
    text-align: center;
}

.feedback-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.feedback-emojis {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.emoji-btn {
    width: 60px;
    height: 60px;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    transform: scale(1.1);
    background: rgba(101, 221, 191, 0.15);
    border-color: var(--mint);
}

.emoji-btn:active {
    transform: scale(1.05);
}

.emoji-btn.selected {
    background: rgba(101, 221, 191, 0.2);
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(101, 221, 191, 0.2);
}

/* Expanded Feedback */
.feedback-expanded {
    margin-top: 24px;
    text-align: left;
    animation: slideDown 0.3s ease;
}

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

.feedback-thanks {
    font-size: 16px;
    font-weight: 600;
    color: var(--mint);
    margin-bottom: 16px;
    text-align: center;
}

.feedback-optional-label {
    font-size: 14px;
    color: var(--gray-light);
    margin-bottom: 20px;
    text-align: center;
}

/* Question blocks */
.feedback-question-block {
    margin-bottom: 20px;
}

.feedback-question-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

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

.feedback-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.feedback-radio:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(101, 221, 191, 0.3);
}

.feedback-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--mint);
}

.feedback-radio input[type="radio"]:checked + span {
    color: var(--mint);
    font-weight: 500;
}

.feedback-radio span {
    font-size: 14px;
    color: var(--white);
    flex: 1;
}

.feedback-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.2s ease;
}

.feedback-textarea::placeholder {
    color: var(--gray);
}

.feedback-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(101, 221, 191, 0.1);
}

.feedback-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    width: auto;
    flex: 1;
}

.btn-link-small {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s ease;
}

.btn-link-small:hover {
    color: var(--gray-light);
}

@media (max-width: 768px) {
    .emoji-btn {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .feedback-question {
        font-size: 16px;
    }

    .feedback-emojis {
        gap: 8px;
    }

    .feedback-checkbox span {
        font-size: 13px;
    }
}
