/* assets/css/style.css */
@font-face { 
    font-family: neghab; 
    src: url(../fonts/IRANSansWeb_Bold.ttf) format('truetype');
    font-display: swap;
}


:root {
    --primary: #00ffff;
    --secondary: #ff00ff;
    --accent: #ffff00;
    --bg-dark: #050a1e;
    --bg-card: #0a1128;
    --bg-card-hover: #0f1736;
    --text: #ffffff;
    --text-dim: #8892b0;
    --glow: rgba(0, 255, 255, 0.5);
    --glow-pink: rgba(255, 0, 255, 0.5);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'neghab', Tahoma, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimized Background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
    will-change: transform;
}

.stars {
    background: #050a1e url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAE0lEQVQIW2NkYGD4z8DAwMgABAABDgEBKUQkJQAAAABJRU5ErkJggg==') repeat top center;
}

.twinkling {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAE0lEQVQIW2P8//8/AyMjIwMjAwAFPQECt3+8PAAAAABJRU5ErkJggg==') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile-First Header */
header {
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 15px var(--glow);
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: clamp(1.5rem, 5vw, 2rem);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    font-size: clamp(0.85rem, 2vw, 1rem);
    white-space: nowrap;
}

.menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateX(-50%);
    transition: width 0.3s;
}

.menu a:hover, .menu a.active {
    color: var(--primary);
}

.menu a:hover::before, .menu a.active::before {
    width: 80%;
}

.user-badge {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 255, 0.1));
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    white-space: nowrap;
}

.btn-logout, .btn-login, .btn-register {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: var(--bg-dark) !important;
    font-weight: 700 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    box-shadow: 0 0 15px var(--glow);
    transition: var(--transition) !important;
    font-size: clamp(0.85rem, 2vw, 1rem) !important;
    border: none !important;
    cursor: pointer;
}

.btn-logout:hover, .btn-login:hover, .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--glow);
}

/* Hero Section - Mobile Optimized */
.hero {
    text-align: center;
    padding: 2rem 1rem;
}

.glitch {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 0 10px var(--glow);
    animation: glitch 3s infinite;
    line-height: 1.2;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* App-Like Device Cards */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.device-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    will-change: transform;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.2);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.device-card:hover .card-glow {
    opacity: 0.2;
}

.device-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0a1128, #050a1e);
}

.device-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.device-card:hover .device-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 30, 0.8) 100%);
}

.device-info {
    padding: 1.2rem;
}

.device-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.7rem;
}

.device-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 8px #00ff00;
}

.btn-reserve {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s;
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

.btn-login-required {
    background: linear-gradient(135deg, #555, #888);
}

/* Reservation cards */
.reservations-container {
    padding: 1rem 0 2rem;
}

.reservations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.reservation-card {
    background: var(--bg-card);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: 0.3s;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.reservation-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.res-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.res-device-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.res-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.res-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.res-info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.res-label {
    color: var(--text-dim);
}

.res-value {
    color: var(--text);
    font-weight: 600;
}

.res-time {
    color: var(--primary);
    font-family: 'neghab', monospace;
}

.no-data {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px dashed rgba(0, 255, 255, 0.2);
}

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-data h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.no-data p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

/* Auth pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-box h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
    text-shadow: 0 0 15px var(--glow);
}

.auth-box input {
    width: 100%;
    padding: 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    background: var(--bg-dark);
    color: #fff;
    margin-bottom: 1rem;
    font-family: neghab;
    font-size: 0.95rem;
    transition: 0.3s;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-family: neghab;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.5);
}

.auth-box p {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.auth-box a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.error, .success {
    padding: 0.8rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.error {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid #ff4d4d;
    color: #ff6b6b;
}

.success {
    background: rgba(0, 255, 0, 0.15);
    border: 1px solid #00ff00;
    color: #00ff00;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    margin-top: 3rem;
    background: rgba(10, 17, 40, 0.8);
}

/* Tablet */
@media (min-width: 768px) {
    .devices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .reservations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        padding: 0 2rem;
    }

    .auth-box {
        padding: 2.5rem;
    }
}

/* Desktop */
@media (min-width: 1100px) {
    .devices-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reservations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Footer Styles - Add to end of assets/css/style.css */

footer {
    background: linear-gradient(180deg, rgba(10, 17, 40, 0.95), rgba(5, 10, 30, 0.98));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    margin-top: 4rem;
    padding: 2rem 0 1rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--glow);
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-info-item:hover {
    color: var(--primary);
    transform: translateX(-3px);
}

.footer-info-item .icon {
    font-size: 1.2rem;
    color: var(--primary);
}

.footer-info-item a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.footer-info-item a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--primary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--glow);
}

.social-link:hover::before {
    opacity: 0.15;
}

.social-link span {
    position: relative;
    z-index: 1;
}

.social-link.telegram { border-color: rgba(0, 136, 204, 0.5); }
.social-link.telegram:hover { 
    border-color: #0088cc;
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

.social-link.instagram { border-color: rgba(225, 48, 108, 0.5); }
.social-link.instagram:hover { 
    border-color: #e1306c;
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
}

.social-link.rubika { border-color: rgba(255, 0, 102, 0.5); }
.social-link.rubika:hover { 
    border-color: #ff0066;
    box-shadow: 0 8px 20px rgba(255, 0, 102, 0.4);
}

.social-link.eitaa { border-color: rgba(0, 200, 83, 0.5); }
.social-link.eitaa:hover { 
    border-color: #00c853;
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0.3rem 0;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-logo span:first-child {
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Tablet */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-section {
        text-align: right;
    }

    .footer-info-item {
        justify-content: flex-start;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}
/* Header Styles - Replace existing header styles in assets/css/style.css */

header {
    background: linear-gradient(180deg, rgba(10, 17, 40, 0.98), rgba(10, 17, 40, 0.95));
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    animation: shimmer 3s infinite;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow);
    text-decoration: none;
    transition: var(--transition);
    z-index: 1001;
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px var(--glow);
}

.logo-icon {
    font-size: clamp(1.6rem, 5vw, 2rem);
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--glow));
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--glow);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
.menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    white-space: nowrap;
    background: rgba(0, 255, 255, 0.02);
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.nav-link:hover {
    color: var(--primary);
    border-color: rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px var(--glow));
}

/* User Badge */
.user-info {
    margin: 0 0.5rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(255, 0, 255, 0.15));
    padding: 0.6rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    transition: var(--transition);
}

.user-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

.user-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px var(--glow));
}

.user-name {
    font-weight: 700;
}

/* Auth Buttons */
.btn-logout, .btn-login, .btn-register {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: var(--bg-dark) !important;
    font-weight: 700 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    transition: var(--transition) !important;
    font-size: clamp(0.85rem, 2vw, 0.95rem) !important;
    border: none !important;
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-logout::before, .btn-login::before, .btn-register::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-logout:hover, .btn-login:hover, .btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.5);
}

.btn-logout:hover::before, .btn-login:hover::before, .btn-register:hover::before {
    opacity: 1;
}

.btn-logout span, .btn-login span, .btn-register span {
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .menu-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(10, 17, 40, 0.98), rgba(5, 10, 30, 0.98));
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 0.8rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(0, 255, 255, 0.2);
        overflow-y: auto;
    }

    .menu.active {
        right: 0;
    }

    .menu li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .user-badge {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .btn-logout, .btn-login, .btn-register {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem 1.2rem !important;
        font-size: 1rem !important;
    }

    .user-info {
        margin: 0;
    }

    /* Overlay */
    .menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 280px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(5px);
        z-index: -1;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .menu {
        gap: 0.4rem;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .user-badge {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .btn-logout, .btn-login, .btn-register {
        padding: 0.5rem 0.9rem !important;
        font-size: 0.85rem !important;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .menu {
        gap: 0.8rem;
    }

    .nav-link {
        padding: 0.7rem 1.2rem;
    }

    .user-badge {
        padding: 0.7rem 1.2rem;
    }

    .btn-logout, .btn-login, .btn-register {
        padding: 0.7rem 1.4rem !important;
    }
}
/* Reservations Page Styles */
.page-header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.page-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--primary);
    text-shadow: 0 0 30px var(--glow);
    margin-bottom: 0.5rem;
    animation: glitch 3s infinite;
}

.page-subtitle {
    color: var(--secondary);
    font-size: clamp(0.9rem, 3vw, 1.2rem);
}

.reservations-section {
    padding: 1rem 0 3rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    padding: 0.7rem 1.3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.5);
}

/* Desktop Table */
.reserve-table-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 255, 255, 0.1);
}

.reserve-table {
    width: 100%;
    border-collapse: collapse;
}

.reserve-table thead {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(255, 0, 255, 0.2));
}

.reserve-table th {
    padding: 1.2rem 1rem;
    text-align: right;
    color: var(--primary);
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    text-shadow: 0 0 10px var(--glow);
    border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.reserve-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.reserve-table tbody tr:hover {
    background: rgba(0, 255, 255, 0.05);
    transform: scale(1.01);
}

.reserve-table td {
    padding: 1rem;
    text-align: right;
}

.customer-name {
    color: var(--primary);
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

.device-info-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.device-name {
    color: var(--text);
    font-weight: 500;
}

.device-type {
    background: rgba(255, 0, 255, 0.2);
    color: var(--secondary);
    padding: 0.25rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 0, 255, 0.3);
    white-space: nowrap;
}

.time-badge {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 0, 0.3);
    display: inline-block;
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-family: 'neghab', monospace;
}

/* Mobile Cards */
.reserve-cards-container {
    display: grid;
    gap: 1rem;
}

.reserve-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.5s ease forwards;
}

.reserve-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.reserve-card-header {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(255, 0, 255, 0.15));
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.reserve-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.reserve-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.reserve-card-row .label {
    color: var(--text-dim);
    font-size: 0.9rem;
    white-space: nowrap;
}

.no-reservations {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 2px dashed rgba(0, 255, 255, 0.2);
}

.no-reservations-icon {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-reservations p {
    color: var(--text-dim);
    font-size: clamp(0.95rem, 3vw, 1.1rem);
}

/* Show/Hide based on screen size */
.mobile-only {
    display: block;
}

.desktop-only {
    display: none;
}

/* Tablet */
@media (min-width: 768px) {
    .page
}
/* Competition Cards */
.competitions-section {
    padding: 2rem 0;
}

.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.competition-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.competition-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.2);
}

.competition-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.competition-card:hover .card-glow {
    opacity: 1;
}

.competition-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

.competition-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.competition-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-available {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.badge-full {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.badge-registered {
    background: rgba(0, 255, 255, 0.2);
    color: var(--primary);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.competition-body {
    position: relative;
    z-index: 1;
}

.competition-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.competition-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-width: 60px;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
}

.info-value.price {
    color: var(--primary);
    font-size: 1.05rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00ff00);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.btn-register-comp {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), #00ff00);
    color: #000;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-register-comp:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.4);
}

/*.btn-login-required {*/
/*    background: linear-gradient(135deg, #ff9900, #ffaa00);*/
/*}*/

.btn-already-registered {
    background: rgba(0, 255, 255, 0.2);
    color: var(--primary);
    cursor: not-allowed;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.btn-full {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    cursor: not-allowed;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .competitions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .competition-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
