/* Core Base */
:root {
    --bg-dark: #0f172a;
    --bg-panel: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.page-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    animation: fadeIn 0.6s ease-out;
}

@media (max-width: 600px) {
    .page-container {
        padding: 0.75rem;
    }
}

.marketing-content {
    text-align: center;
    padding: 2rem;
}

.marketing-icon {
    margin-bottom: 1.5rem;
}

.marketing-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.marketing-cta {
    margin-bottom: 2rem;
}

.marketing-lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.benefit-list {
    list-style: none;
    padding: 0;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.benefit-title {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
}

.benefit-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}




.badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(56, 189, 248, 0.3);
    min-width: 1.5rem;
    text-align: center;
}

.badge-pending.btn-pending-action {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--accent);
    background: rgba(56, 189, 248, 0.1);
}

.badge-pending.btn-pending-action:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.badge-pending.btn-pending-action:active {
    transform: translateY(0) scale(0.95);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

body.center-content {
    align-items: center;
}

.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: var(--glass-shadow);
}

/* Diagnostic Overlay Styles */
.diag-text { 
    font-family: 'Inter', sans-serif; 
    font-size: 8px; 
    font-weight: 700; 
    fill: #fff; 
    text-anchor: middle;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}
.diag-text-small { 
    font-size: 6.5px; 
    font-weight: 600; 
    fill: #cbd5e1;
    font-family: 'Inter', sans-serif;
    text-anchor: middle;
}

@media (max-width: 600px) {
    .glass-panel {
        border-radius: 0.75rem;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.error-message {
    display: none;
    align-items: center;
    gap: 0.75rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.error-message svg {
    flex-shrink: 0;
}

/* Typography & Layout */
.text-center {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.app-container {
    width: 100%;
    max-width: 900px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (max-width: 600px) {
    .app-container {
        padding: 0.5rem;
    }
}

header.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out forwards;
}

.landing-container {
    width: 100%;
    max-width: 900px;
    padding: 2.5rem;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.preview-group {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    border: 1px solid var(--glass-border);
}

.image-placeholder {
    flex: 0 0 40%;
    max-width: 320px;
    height: auto;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.app-summary {
    flex: 1;
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.6;
}

.summary-blurb {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.25rem;
    max-width: 500px;
}

.app-summary p {
    margin-bottom: 0.25rem;
}

/* Landing Inputs */
.terms-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    color: var(--text-primary);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: -2px;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input~.checkmark {
    background-color: rgba(255, 255, 255, 0.15);
}

.checkbox-container input:focus~.checkmark,
.checkbox-container input:focus-visible~.checkmark {
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container.sm {
    padding-left: 28px;
    font-size: 0.8rem;
}
.checkbox-container.sm .checkmark {
    width: 18px;
    height: 18px;
}
.checkbox-container.sm .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
}

.terms-text a {
    color: var(--accent);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Base Form Styling Elements */
.form-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

@media (max-width: 600px) {
    .form-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        gap: 1rem;
    }
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease-in-out;
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

.invisible-divider {
    background: transparent;
    margin: 1rem 0;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Inputs */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    color: var(--text-primary);
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.radio-container:hover input~.radio-checkmark {
    background-color: rgba(255, 255, 255, 0.15);
}

.radio-container input:checked~.radio-checkmark {
    border-color: var(--accent);
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.radio-container input:checked~.radio-checkmark:after {
    display: block;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.form-select,
.form-input {
    width: 100%;
    appearance: none;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-select:-webkit-autofill,
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(15, 23, 42, 1) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-select:focus,
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.form-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
}

.input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.form-input {
    padding-right: 4rem;
}

.input-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
}

.multiply-icon {
    color: var(--text-secondary);
}

/* Buttons & Links */
.btn-primary-filled {
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.w-full {
    width: 100%;
}

.btn-primary-filled:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, var(--accent-hover) 0%, #6366f1 100%);
    transform: translateY(-2px);
}

.btn-primary-filled:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-white {
    background: #ffffff;
    color: #0f172a;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

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

.camera-btn {
    font-size: 1.15rem;
    padding: 1.25rem 2.5rem;
}

.upload-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
}

.upload-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Restored Manual Counter */
.flex-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.counter-display {
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.small-punch {
    width: 80px;
    height: 80px;
    font-size: 1rem;
    border-radius: 20px;
}

.btn-punch {
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4), inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.btn-punch:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.6), inset 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.btn-punch:active {
    transform: scale(0.95);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4), inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stats-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 1.5rem;
    margin: 0 auto;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    color: var(--text-secondary);
}

.stat-item span {
    display: block;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.box-section {
    width: 100%;
    margin-top: 1rem;
}

/* Results CV Page */
.results-section {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: scaleIn 0.5s ease-out forwards;
}

@media (max-width: 600px) {
    .results-section {
        padding: 1rem;
        gap: 1rem;
    }
}

.results-title {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.results-display {
    font-size: 6rem;
    margin: 0;
}

.image-preview-container {
    width: 100%;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.preview-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

#image-preview {
    max-width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Canvas expand (click-to-fullscreen) affordance */
.canvas-expand-wrap {
    position: relative;
    cursor: default;
    transition: box-shadow 0.2s;
}

.canvas-expand-wrap:hover {
    box-shadow: 0 0 0 2px var(--accent);
}

.canvas-expand-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}

.canvas-expand-wrap:hover .canvas-expand-overlay {
    opacity: 1;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* No transform to avoid Z-index/Fixed issues */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.punch-animation {
    animation: pulse 0.3s ease-out;
}

@media (max-width: 600px) {
    .landing-container {
        padding: 1rem;
        border-radius: 1rem;
        border: none;
        min-height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .preview-group {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }

    .image-placeholder {
        flex: none;
        max-width: 250px;
        margin: 0 auto;
    }

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

    .app-summary .feature-list {
        margin: 0 auto !important;
    }

    .summary-blurb {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

.utility-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 1.5rem;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem 1.5rem 0 0;
    width: 100%;
    animation: fadeInDown 0.6s ease-out forwards;
    position: relative;
    z-index: 1100;
}

@media (max-width: 600px) {
    .utility-nav {
        padding: 0.5rem 1rem;
        gap: 0.75rem;
        justify-content: flex-end; /* Keep everything on the right */
        overflow: visible; /* Ensure absolute children like dropdown menu aren't clipped */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .utility-nav::-webkit-scrollbar {
        display: none;
    }
}

.utility-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
}

.utility-link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Utility Nav Buttons */
.btn-notifications, .btn-inbox, .btn-leaderboard, .btn-scope, .btn-wind {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-notifications:hover, .btn-inbox:hover, .btn-leaderboard:hover, .btn-scope:hover, .btn-wind:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    transform: translateY(-1px);
}

.unread-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #0f172a;
}

/* Premium User Dropdown */
.user-dropdown-container {
    position: relative;
    z-index: 1200;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.6rem 0.4rem 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.user-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

/* Avatar Reporting */
.card-avatar, .profile-avatar, .user-avatar-sm, .podium-item .avatar, .contender-avatar {
    position: relative;
    cursor: pointer;
}

.avatar-report-btn {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: inherit;
    z-index: 10;
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.card-avatar:hover .avatar-report-btn, 
.profile-avatar:hover .avatar-report-btn, 
.podium-item .avatar:hover .avatar-report-btn,
.contender-avatar:hover .avatar-report-btn {
    opacity: 1;
}

/* Header avatar should only show report button on desktop hover, or be disabled if it interferes */
@media (min-width: 601px) {
    .user-avatar-sm:hover .avatar-report-btn {
        opacity: 1;
    }
}

.avatar-report-btn svg {
    width: 24px;
    height: 24px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-report-btn:hover svg {
    transform: scale(1.1);
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .user-name {
        display: block;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.85rem;
    }
    .utility-link {
        font-size: 0.85rem; /* Show text now that icons are removed */
        display: flex;
        align-items: center;
    }
    .utility-link svg {
        margin: 0 !important;
    }
}

.dropdown-arrow {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.user-dropdown-container.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--accent);
}

.user-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: 220px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: none;
    animation: menuSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top right;
}

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

.user-menu.active {
    display: block;
    z-index: 2000 !important;
}

.user-menu-header {
    padding: 0.75rem 1rem 0.5rem;
}

.user-menu-info {
    display: flex;
    flex-direction: column;
}

.user-menu-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.user-menu-role {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-menu-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.user-menu-item svg {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.user-menu-item:hover svg {
    color: var(--accent);
}


/* Footer Styling */
.app-footer {
    margin-top: auto;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    animation: fadeIn 0.8s ease-out;
    background: rgba(15, 23, 42, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.version-tag {
    opacity: 0.6;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}


.utility-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.utility-link:hover {
    color: var(--text-primary);
}

.btn-notifications, .btn-inbox {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    position: relative;
}

.btn-notifications:hover, .btn-inbox:hover {
    color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
    transform: scale(1.1);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem 1rem;
    margin-bottom: 2rem;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 0 0 1.5rem 1.5rem;
    width: 100%;
    animation: fadeInDown 0.6s ease-out forwards;
    position: relative;
    z-index: 100;
    flex-wrap: wrap; /* Allow wrapping on medium screens */
    gap: 1rem;
}

@media (max-width: 600px) {
    .app-header {
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
        border-radius: 0 0 1rem 1rem;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-grow: 1;
    justify-content: flex-end;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-logo {
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Inbox & Messaging Styles */
.btn-inbox {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.btn-inbox:hover {
    color: #818cf8;
    background: rgba(129, 140, 248, 0.1);
    transform: scale(1.1);
}

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 1px solid var(--bg-dark);
}

.badge {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.message-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: background 0.2s;
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.message-item.unread {
    border-left: 3px solid var(--accent);
    background: rgba(56, 189, 248, 0.03);
}

.message-main {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-info {
    flex: 1;
}

.message-sender {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.message-subject {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.message-meta {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.message-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: rgba(15, 23, 42, 0.4);
    border-top: 0px solid var(--glass-border);
}

.message-item.expanded .message-body {
    max-height: 1000px;
    transition: max-height 0.4s ease-in;
    border-top: 1px solid var(--glass-border);
}

.message-content {
    padding: 1.5rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.inbox-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.inbox-empty svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}

.user-display {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.user-icon {
    opacity: 0.8;
}

.btn-back, .btn-back-admin {
    display: none !important;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    --danger: #ef4444;
}



.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.toggle-visibility {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    z-index: 10;
}

.toggle-visibility:hover {
    color: var(--text-primary);
}

.input-group input[type="password"],
.input-group input[type="text"].input-field {
    padding-right: 2.5rem !important;
}

/* Slider Header & Numeric Inputs */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.num-input {
    width: 60px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 0.4rem;
    padding: 0.3rem 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.num-input:focus {
    border-color: var(--accent);
}

/* Remove number spinner buttons */
.num-input::-webkit-outer-spin-button,
.num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* History Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.page-btn {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Modern Sliders */
.slider-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    margin-top: 1rem;
}

.slider-ticks,
.slider-ticks-visual {
    position: relative;
    width: 100%;
    height: 8px;
    margin-top: -1.2rem;
    margin-bottom: 0.8rem;
    pointer-events: none;
    z-index: 1;
}

.slider-tick {
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--accent);
    border-radius: 1px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.slider-tick.active {
    opacity: 1;
    height: 120%;
    background: white;
}

.slider-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.range-hint {
    color: var(--text-primary);
    opacity: 0.8;
}

.range-value {
    font-weight: 400;
    color: var(--text-primary);
}

.form-range {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    appearance: none;
    outline: none;
}

.modern-slider,
.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    margin: 1.5rem 0;
    transition: background 0.3s;
}

.modern-slider::-webkit-slider-runnable-track,
.form-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modern-slider::-webkit-slider-thumb,
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--accent);
    cursor: pointer;
    border-radius: 50%;
    margin-top: -8px; 
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
    border: 3px solid white;
    transition: transform 0.2s;
}

.modern-slider::-webkit-slider-thumb:hover,
.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--accent-hover);
}

.modern-slider::-moz-range-track,
.form-range::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modern-slider::-moz-range-thumb,
.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--accent);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
    border: 3px solid white;
}

/* === Mobile Responsive Navigation === */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10000;
    /* Topmost layer */
    transition: transform 0.3s;
}

.hamburger-btn:active {
    transform: scale(0.9);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 800px) {
    .hamburger-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        /* Menu layer */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link,
    .nav-menu .btn-logout,
    .nav-menu .btn-back {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .header-right {
        display: none;
    }

    /* Standard desktop right hidden */
    .header-left .btn-secondary {
        display: none !important;
    }

    /* Desktop history hidden */
}

/* Nav links styling in menu */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* Guest History View */
.guest-history-view {
    padding: 3rem 1.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.marketing-icon {
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
}

.guest-history-view h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, white 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.marketing-lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-bottom: 3rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-list li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.benefit-list li strong {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.benefit-list li span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.5);
    color: white;
}

/* Tabs Styling */
.tabs-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out both;
}

.tab-btn {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    color: #cbd5e1;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    font-family: inherit;
}

.tab-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .tabs-container {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Action Buttons for Table Rows */
.btn-action-sm {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent);
    padding: 0.4rem 0.8rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-action-sm:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

/* Custom Validation Modal Overlay */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.modal-backdrop:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 480px;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 600px) {
    .modal-container {
        padding: 1.5rem 1rem;
        border-radius: 1.5rem;
    }
}

.modal-backdrop:not(.hidden) .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

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

.modal-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.modal-subtext {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-guest-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.modal-link:hover {
    color: var(--accent-hover);
}

/* Confirmation Overlay Styles */
.confirm-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.confirm-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
    .confirm-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
}
.confirm-actions {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
}
.btn-action {
    flex: 1;
    padding: 1rem;
    border-radius: 2rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
}
.btn-message { background: rgba(255, 255, 255, 0.1); color: white; }
.btn-delete { background: #ef4444; color: white; }
/* Global Footer */
.app-footer {
    margin-top: auto;
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.version-tag,
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link:hover {
    color: var(--accent);
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.toggle-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: var(--accent);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1e293b;
    transition: .4s;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-primary);
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: rgba(56, 189, 248, 0.2);
    border-color: var(--accent);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--accent);
}

input:checked + .slider:before {
    transform: translateX(28px);
    background-color: var(--accent);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Profile Marketing Card */
.profile-marketing-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-marketing-card:hover {
    border-color: var(--accent);
    box-shadow: 0 25px 50px -12px rgba(56, 189, 248, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    background: var(--profile-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
}

.card-username {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    display: block;
}

.card-tag {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 0.75rem;
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.card-actions {
    margin-top: 0.5rem;
}

.btn-connect {
    width: 100%;
    padding: 0.8rem;
    border-radius: 1rem;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-connect:hover {
    background: #0ea5e9;
    transform: scale(1.02);
}

.btn-connect svg {
    width: 16px;
    height: 16px;
}

.btn-connected {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Callout for best results */
.results-callout {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
    animation: fadeIn 0.8s ease-out;
}

.callout-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--accent);
}

.callout-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .results-callout {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
}

/* Paper size note */
.paper-size-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.paper-size-note .note-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    opacity: 0.8;
}

.paper-size-note p {
    margin: 0;
}

/* Multi-dot Target Selection */
#target-grid button {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

#target-grid button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#target-grid button.btn-primary-filled {
    border-color: var(--accent) !important;
    background: var(--accent) !important;
    color: var(--bg-dark) !important;
}

/* Custom Number Input Spinners styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0.7;
    filter: invert(0.8) sepia(1) saturate(5) hue-rotate(175deg);
    cursor: pointer;
    transition: opacity 0.2s, filter 0.2s;
    height: 1.5rem;
    margin-right: 4px;
}

input[type="number"]::-webkit-inner-spin-button:hover,
input[type="number"]::-webkit-outer-spin-button:hover {
    opacity: 1;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg) brightness(1.2);
}

/* Site-wide Form Input Validation Error Styles */
input.input-error,
select.input-error,
textarea.input-error,
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25) !important;
}

.radio-group.input-error {
    border: 1px solid #ef4444 !important;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25) !important;
    transition: all 0.2s ease;
}

span.error-asterisk,
.error-asterisk {
    color: #ef4444 !important;
}
