/* ==========================================================================
   Design System Configuration & Variables
   ========================================================================== */
:root {
    --bg-color: hsl(222, 25%, 7%);
    --text-color: hsl(210, 20%, 98%);
    --text-muted: hsl(215, 15%, 65%);
    --card-bg: rgba(20, 26, 38, 0.65);
    --card-border: rgba(255, 255, 255, 0.07);
    --primary-color: hsl(263, 80%, 62%);
    --primary-hover: hsl(263, 85%, 67%);
    --secondary-color: rgba(255, 255, 255, 0.05);
    --secondary-hover: rgba(255, 255, 255, 0.1);
    --success-color: hsl(142, 70%, 50%);
    --danger-color: hsl(354, 70%, 54%);
    --warning-color: hsl(38, 90%, 55%);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, hsl(263, 80%, 62%), hsl(295, 80%, 52%));
    --premium-gradient: linear-gradient(135deg, hsl(38, 90%, 55%), hsl(15, 90%, 52%));
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    
    /* Layout & Shadow */
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glow-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-type: border-box;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   Background Ambient Glowing Effects
   ========================================================================== */
.background-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
}

.glow-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsl(263, 80%, 50%) 0%, transparent 80%);
}

.glow-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsl(295, 80%, 45%) 0%, transparent 80%);
}

/* ==========================================================================
   Glassmorphism Card System
   ========================================================================== */
.glass-card {
    background: var(--card-bg);
    background-image: var(--glass-gradient);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 30px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.hover-glow:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 10px 40px 0 rgba(124, 58, 237, 0.15), var(--card-shadow);
    transform: translateY(-4px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: var(--glow-shadow);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.45);
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--text-muted);
}

.btn-warning {
    background-color: var(--danger-color);
    color: white;
}

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

.btn-premium-glow {
    background: var(--premium-gradient);
    color: white;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.btn-premium-glow:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */
.app-header {
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: #fff;
}

.logo-icon {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 26px;
}

.logo-text span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover, .nav-item.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.premium-badge-nav {
    color: var(--warning-color);
}
.premium-badge-nav.active, .premium-badge-nav:hover {
    color: #fff;
    background: var(--premium-gradient);
}

.admin-badge-nav {
    color: hsl(270, 80%, 70%);
}

.nav-auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid var(--card-border);
    padding-left: 20px;
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-greeting {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-star {
    color: var(--warning-color);
    font-size: 12px;
}

/* ==========================================================================
   Home Hero Section
   ========================================================================== */
.hero-section {
    padding: 60px 0 40px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Shortener Box Layout
   ========================================================================== */
.shortener-container {
    max-width: 800px;
    margin: 0 auto;
}

.shortener-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    background-color: rgba(10, 15, 30, 0.4);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 6px 6px 6px 16px;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.15);
}

.input-icon {
    color: var(--text-muted);
    font-size: 18px;
}

.form-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.url-input {
    flex-grow: 1;
}

.btn-shorten {
    flex-shrink: 0;
}

.shortener-options {
    padding-left: 4px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
}

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

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    transition: var(--transition);
}

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

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

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

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

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.label-text {
    font-size: 14px;
    color: var(--text-color);
}

.premium-option-disabled {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.premium-link {
    font-weight: 600;
    color: var(--warning-color);
    border-bottom: 1px dashed var(--warning-color);
}

.premium-link:hover {
    color: #fff;
    border-color: #fff;
}

/* Shortened link display card */
.result-card {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.result-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-box {
    display: flex;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 6px;
    margin-bottom: 12px;
    align-items: center;
}

.result-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    padding: 0 12px;
    width: 100%;
    outline: none;
}

.btn-copy {
    flex-shrink: 0;
}

.copied {
    background-color: var(--success-color) !important;
    border-color: transparent !important;
    color: white !important;
}

.result-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.truncate-link {
    color: var(--text-muted);
    word-break: break-all;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.truncate-link:hover {
    color: #fff;
}

/* ==========================================================================
   Dashboard Table Styles
   ========================================================================== */
.dashboard-section {
    margin-top: 50px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
}

.badge-premium {
    background: var(--premium-gradient);
    color: white;
}

.badge-normal {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.table-card {
    padding: 0;
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 16px 24px;
}

.data-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--card-border);
}

.data-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.td-url {
    max-width: 300px;
}

.url-cell-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

.short-link-href {
    font-weight: 600;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.badge-status.permanent {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-status.temporary {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.empty-state {
    padding: 60px 20px;
}

.empty-icon {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

/* ==========================================================================
   User Auth Styles (Login/Register)
   ========================================================================== */
.auth-wrapper {
    max-width: 450px;
    margin: 50px auto;
}

.auth-card {
    padding: 40px;
}

.auth-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 8px;
}

.auth-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group .form-input {
    background-color: rgba(10, 15, 30, 0.4);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    transition: var(--transition);
}

.form-group .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.15);
}

.error-text {
    font-size: 12px;
    margin-top: 4px;
}

.text-danger {
    color: var(--danger-color);
}

.auth-footer {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   Premium Upsell & Subscription Screen Styles
   ========================================================================== */
.premium-upsell-banner {
    margin-top: 30px;
    background: linear-gradient(90deg, rgba(20, 26, 38, 0.6) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.15);
}

.upsell-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.upsell-text h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 6px;
}

.upsell-text p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 600px;
}

.text-yellow {
    color: var(--warning-color);
}

.premium-header {
    padding: 40px 0 30px;
}

.premium-header h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 8px;
}

/* Subscription details card */
.active-sub-card {
    border-color: var(--success-color);
    max-width: 650px;
    margin: 0 auto 40px;
}

.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.sub-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-green {
    color: var(--success-color);
}

.sub-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.detail-label {
    color: var(--text-muted);
}

.detail-val {
    font-weight: 600;
}

.sub-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.info-text {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Premium pricing grids */
.premium-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 850px;
    margin: 0 auto 40px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    transform: rotate(45deg);
    background-color: var(--secondary-color);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 30px;
    text-transform: uppercase;
}

.plan-badge.premium {
    background: var(--premium-gradient);
    color: white;
}

.plan-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 16px;
}

.plan-price {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
}

.plan-price .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-muted);
}

.plan-price .amount {
    font-family: var(--font-heading);
    font-size: 54px;
    font-weight: 800;
}

.plan-price .period {
    color: var(--text-muted);
    font-size: 14px;
    margin-left: 4px;
}

.plan-features {
    list-style: none;
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.plan-features li {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-card {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.03);
}

/* Checkout Form Styles */
.checkout-wrapper {
    max-width: 650px;
    margin: 40px auto;
}

.checkout-card {
    padding: 40px;
}

.checkout-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.checkout-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.mock-billing-alert {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--warning-color);
    margin-bottom: 24px;
}

/* ==========================================================================
   Admin Control Panel Styles
   ========================================================================== */
.admin-header {
    padding: 40px 0 30px;
}

.admin-header h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 8px;
}

.text-purple {
    color: hsl(270, 80%, 75%);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

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

.config-card h3, .tools-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-help-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-group-switches {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 8px 0;
}

/* Admin Toggles / Switch Style */
.switch-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.switch-container input {
    display: none;
}

.slider {
    width: 44px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    border-radius: 34px;
    position: relative;
    transition: var(--transition);
}

.slider:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.switch-container input:checked ~ .slider {
    background: var(--primary-gradient);
    border-color: transparent;
}

.switch-container input:checked ~ .slider:before {
    transform: translateX(20px);
}

.switch-label {
    font-size: 14px;
    font-weight: 500;
}

/* Tool stats widget */
.stats-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.stat-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-md);
    padding: 16px;
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-actions-section h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.admin-table-section {
    margin-bottom: 40px;
}

.admin-table-section h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.badge-creator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.badge-creator.user {
    background-color: rgba(139, 92, 246, 0.1);
    color: hsl(263, 80%, 75%);
}

.badge-creator.guest {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* ==========================================================================
   Error/404 Page Styles
   ========================================================================== */
.error-page-wrapper {
    max-width: 600px;
    margin: 80px auto;
}

.error-illustration {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.error-icon-large {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.15);
}

.error-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--primary-gradient);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: var(--glow-shadow);
}

.error-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 12px;
}

.error-message {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Flash Message Alerts Styles
   ========================================================================== */
.flash-container {
    margin-bottom: 24px;
}

.flash-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-icon {
    font-size: 18px;
}

.alert-close {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: hsl(210, 90%, 65%);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
    background-color: rgba(10, 15, 25, 0.4);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-subtext {
    font-size: 11px;
    opacity: 0.8;
}

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

.success-animation {
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Guest Banner styling */
.guest-banner-section {
    padding: 50px 40px;
    max-width: 650px;
    margin: 40px auto 0;
}

.guest-icon {
    font-size: 44px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.guest-banner-section h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 8px;
}

.guest-banner-section p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.guest-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Small devices formatting overrides */
@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }
    .input-group {
        flex-direction: column;
        padding: 12px;
    }
    .btn-shorten {
        width: 100%;
    }
    .guest-actions, .error-actions {
        flex-direction: column;
    }
}
