/* 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);
}

* {
    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);
}

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

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

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

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: 1000px;
    padding: 2.5rem;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.image-placeholder {
    width: 100%;
    height: 250px;
    background: rgba(15, 23, 42, 0.5);
    border: none;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.app-summary {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.05rem;
}

/* 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: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;
}

.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;
}

.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: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);
}

.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;
}

.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: 1.5rem;
        border-radius: 0;
        border: none;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }
}

.utility-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 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%;
    gap: 1rem;
    animation: fadeInDown 0.6s ease-out forwards;
}

.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 {
    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-notifications: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;
}

.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;
    color: var(--text-primary);
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.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 {
    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);
    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 */
.modern-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
    margin: 1.5rem 0;
    transition: background 0.3s;
}

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

.modern-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    cursor: pointer;
    border-radius: 50%;
    margin-top: -7px;
    /* Centers thumb on 6px track */
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    border: 2px solid white;
    transition: transform 0.2s;
}

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

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

.modern-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    border: 2px 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: var(--text-secondary);
    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(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-container {
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.modal-backdrop:not(.hidden) .modal-container {
    transform: 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);
}