/* ============================================
   Game Center - Faceit Inspired Dark Theme
   ============================================ */

:root {
    /* Faceit Color Palette */
    --primary-color: #ff5500;
    --primary-dark: #e64a00;
    --primary-light: #ff7733;
    --secondary-color: #ff5500;
    --secondary-dark: #cc4400;
    --accent-color: #00d4ff;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --danger-color: #ff3333;
    
    /* Dark Backgrounds */
    --bg-primary: #0e0e0e;
    --bg-secondary: #090d10d1;
    --bg-tertiary: #252525;
    --bg-card: #090d10a8;
    --bg-hover: #2a2a2a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;
    --text-disabled: #555555;
    
    /* Borders */
    --border-color: #333333;
    --border-light: #404040;
    --border-accent: #ff5500;
    
    /* Gradients */
    --bg-gradient: linear-gradient(135deg, #0e0e0e 0%, #1a1a1a 50%, #0e0e0e 100%);
    --primary-gradient: linear-gradient(135deg, #ff5500 0%, #ff7733 100%);
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 85, 0, 0.3);
    --shadow-glow-accent: 0 0 20px rgba(0, 212, 255, 0.3);
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

body {
    font-family: 'Play', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 85, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Background Highlight Animation */
.background-highlight {
    position: fixed;
    width: 2000px;
    height: 500px;
    background: linear-gradient(
        135deg,
        rgba(255, 85, 0, 0.5) 0%,
        rgba(255, 119, 51, 0.4) 20%,
        rgba(255, 85, 0, 0.3) 40%,
        rgba(255, 85, 0, 0.2) 60%,
        rgba(255, 85, 0, 0.1) 80%,
        rgba(255, 85, 0, 0.05) 90%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none !important;
    z-index: -1;
    animation: highlightMove 40s ease-in-out infinite;
    will-change: transform;
    transform-origin: center;
}

@keyframes highlightMove {
    0% {
        top: -20%;
        right: -70%;
        transform: rotate(-45deg) scale(1);
        opacity: 0.8;
    }
    50% {
        top: -50%;
        right: 60%;
        transform: rotate(-45deg) scale(1.1);
        opacity: 1;
    }
    100% {
        top: -20%;
        right: -70%;
        transform: rotate(-45deg) scale(1);
        opacity: 0.8;
    }
}

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

/* ============================================
   Navigation - Faceit Style
   ============================================ */

.navbar {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 70px;
    width: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-right: auto;
    padding-left: 0;
    flex-shrink: 0;
}

.navbar-brand {
    padding-left: 0;
    flex-shrink: 0;
}

.navbar-search {
    flex: 1 1 420px;
    max-width: 500px;
    margin: 0 30px;
    display: flex;
    align-items: center;
    min-width: 0;
}

.navbar-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    appearance: none;
    font-family: inherit;
}

.lang-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: var(--bg-hover);
    transform: translateY(-1px);
}

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

.lang-btn.active {
    color: #fff;
    border-color: rgba(255, 85, 0, 0.6);
    background: linear-gradient(135deg, rgba(255, 85, 0, 0.35) 0%, rgba(255, 119, 51, 0.2) 100%);
    box-shadow: 0 6px 16px rgba(255, 85, 0, 0.25);
}

.flag {
    width: 20px;
    height: 14px;
    border-radius: 3px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.flag-ir {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23ffffff'/><rect width='60' height='13.33' y='0' fill='%23239f40'/><rect width='60' height='13.33' y='26.67' fill='%23da0000'/><circle cx='30' cy='20' r='4' fill='%23da0000'/></svg>");
}

.flag-en {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23ffffff'/><rect x='0' y='17' width='60' height='6' fill='%23c8102e'/><rect x='27' y='0' width='6' height='40' fill='%23c8102e'/></svg>");
}

.search-form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-form.open .search-input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--primary-color);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.1), 0 0 15px rgba(255, 85, 0, 0.2);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: var(--border-radius-sm);
}

.search-button:hover {
    color: var(--primary-color);
    background: rgba(255, 85, 0, 0.1);
}

.search-button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Global Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    z-index: 1200;
    padding: 10px;
    max-height: 520px;
    overflow-y: auto;
}

.search-suggestions-group {
    margin-bottom: 10px;
}

.search-suggestions-group:last-child {
    margin-bottom: 0;
}

.search-suggestions-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 6px 6px 8px;
    font-weight: 600;
}

.search-suggestion-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.search-suggestion-item:hover,
.search-suggestion-item.is-active {
    background: rgba(255, 85, 0, 0.08);
    border-color: rgba(255, 85, 0, 0.2);
}

.search-suggestion-item.is-disabled {
    opacity: 0.55;
    cursor: default;
}

.search-suggestion-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 85, 0, 0.12);
    color: var(--primary-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.search-suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.search-suggestion-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.search-suggestion-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-suggestion-badge {
    background: rgba(255, 85, 0, 0.15);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-suggestions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 8px;
}

.search-suggestions-more {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.search-suggestions-hint,
.search-suggestions-empty {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 6px;
}

/* Search Results Page */
.search-results-page {
    padding: 30px 0 60px;
}

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

.search-results-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.search-results-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-results-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.search-results-count {
    font-weight: 600;
    color: var(--text-primary);
}

.search-results-timing {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-results-grid {
    display: grid;
    gap: 18px;
}

.search-results-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.search-results-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 85, 0, 0.05);
}

.search-results-group-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.search-results-group-more {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
}

.search-results-items {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 85, 0, 0.06);
}

.search-result-item.is-disabled {
    opacity: 0.6;
    cursor: default;
}

.search-result-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 85, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.search-result-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-result-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: rgba(255, 85, 0, 0.15);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.search-results-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.navbar-menu {
    margin-left: auto;
    padding-right: 0;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .navbar-search {
        margin: 0 16px;
        flex-basis: 320px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

.navbar-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.navbar-brand .logo:hover {
    color: var(--primary-color);
    transform: translateX(-2px);
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 6px 16px rgba(255, 90, 0, 0.35));
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #ff5500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.3);
    transition: var(--transition);
}

.nav-avatar:hover {
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.5);
    transform: scale(1.05);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    list-style: none;
    min-width: 220px;
    padding: 8px 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    padding-right: 24px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
    border: none;
}

.logout-link {
    color: var(--danger-color) !important;
}

.logout-link:hover {
    background: rgba(255, 51, 51, 0.1) !important;
    color: var(--danger-color) !important;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.navbar-toggle:hover span {
    background: var(--primary-color);
}

/* ============================================
   Buttons - Faceit Style
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff7733 0%, #ff5500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff5555 0%, #ff3333 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.75rem;
}

/* ============================================
   Messages/Alerts - Faceit Style
   ============================================ */

.messages-container {
    padding: 20px 0;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
    border-color: var(--success-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.alert-error,
.alert-danger {
    background: rgba(255, 51, 51, 0.1);
    color: var(--danger-color);
    border-color: var(--danger-color);
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.2);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    color: var(--warning-color);
    border-color: var(--warning-color);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    margin-right: 10px;
    transition: var(--transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Beta Banner
   ============================================ */

.beta-banner {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.1) 0%, rgba(255, 85, 0, 0.15) 100%);
    border-bottom: 1px solid rgba(255, 170, 0, 0.3);
    padding: 12px 0;
    position: relative;
    z-index: 100;
}

.beta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.beta-badge {
    background: var(--warning-color);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 170, 0, 0.3);
}

.beta-text {
    color: var(--warning-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

/* ============================================
   Footer - Faceit Style
   ============================================ */

.footer {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.92), rgba(5, 5, 5, 0.98));
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 60px 0 32px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-bottom: 36px;
    align-items: start;
}

.footer-brand {
    display: grid;
    gap: 12px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.footer-logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 6px 16px rgba(255, 90, 0, 0.25));
}

.footer-logo-mark svg {
    width: 100%;
    height: 100%;
}

.footer-logo-text {
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
}

.footer-description {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-section h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-gradient);
    margin-top: 8px;
    border-radius: 2px;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-inline-start: 8px;
}

.footer-section a:hover::before {
    width: calc(100% - 8px);
}

.footer-developer {
    align-self: stretch;
}

.footer-dev-card {
    border: 1px solid color-mix(in srgb, var(--primary-color) 35%, var(--border-color));
    border-radius: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 8px;
}

.footer-dev-name {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.footer-dev-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle {
        order: 2;
        margin-left: auto;
    }

    .navbar-search {
        max-width: none;
        margin: 12px 0 0;
        order: 3;
        width: 100%;
    }

    .navbar-left {
        order: 1;
        flex: 1 1 auto;
        width: auto;
        justify-content: flex-start;
        gap: 12px;
        margin: 0;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        order: 4;
        margin-left: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        display: none;
    }
    
    .navbar-menu.active {
        display: block;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 10px 0 0 20px;
        background: var(--bg-tertiary);
    }
    
    .container {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 30px 0;
    }
}

/* ============================================
   Tabs - Server Settings
   ============================================ */

.tabs-container {
    border-top: 1px solid var(--border-color);
}

.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 0;
}

.tab-btn {
    padding: 16px 32px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.tab-btn span {
    display: block;
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

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

/* Checkbox Label */
.checkbox-label {
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Server Control Section */
.server-control-section {
    max-width: 600px;
}

.server-control-buttons .btn {
    min-width: 150px;
}

/* Form improvements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.1);
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

select.form-control {
    cursor: pointer;
}
