/* ============================================
   NAVBAR STYLES
   ============================================ */

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
    padding: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Logo/Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar-brand i {
    font-size: 1.8rem;
    color: var(--primary-color, #4a90e2);
}

.navbar-brand:hover {
    color: var(--primary-color, #4a90e2);
    transform: translateY(-2px);
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.navbar-menu a i {
    font-size: 1.1rem;
}

.navbar-menu a:hover {
    background: rgba(74, 144, 226, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

.navbar-menu a.active {
    background: rgba(74, 144, 226, 0.2);
    color: var(--primary-color, #4a90e2);
}

/* User Balance Display */
.navbar-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(80, 200, 120, 0.2));
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.navbar-balance i {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Logout Button */
.navbar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.3);
    border-radius: 8px;
    color: #f56565;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.navbar-logout:hover {
    background: rgba(245, 101, 101, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.2);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(74, 144, 226, 0.5);
    color: var(--primary-color, #4a90e2);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.navbar-toggle:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: var(--primary-color, #4a90e2);
}

/* Mobile Menu */
@media (max-width: 968px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 20px;
        border-right: 1px solid rgba(74, 144, 226, 0.2);
        transition: left 0.3s;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu a {
        width: 100%;
        padding: 15px 18px;
        border-radius: 8px;
        margin-bottom: 5px;
    }

    .navbar-balance {
        margin-bottom: 10px;
        justify-content: center;
    }

    .navbar-logout {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .navbar-toggle {
        display: block;
    }
}

/* ============================================
   POLICY PAGE STYLES
   ============================================ */

/* Body Adjustments */
body {
    padding-top: 70px;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    min-height: 100vh;
}

/* Policy Container */
.policy-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px 60px;
    animation: fadeInUp 0.6s ease;
}

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

/* Policy Header */
.policy-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 60px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.policy-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.policy-header h1 {
    font-size: 3rem;
    margin: 0 0 15px 0;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.policy-header h1 i {
    margin-right: 15px;
    opacity: 0.9;
}

.policy-header .last-updated {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Policy Content */
.policy-content {
    background: rgba(22, 27, 34, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 16px;
    padding: 50px;
    line-height: 1.9;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.policy-content h2 {
    color: var(--primary-color, #4a90e2);
    margin-top: 50px;
    margin-bottom: 25px;
    font-size: 2rem;
    border-bottom: 3px solid rgba(74, 144, 226, 0.3);
    padding-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content h3 {
    color: rgba(255, 255, 255, 0.95);
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.policy-content h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.policy-content p {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.8;
}

.policy-content ul,
.policy-content ol {
    margin: 20px 0 20px 35px;
    color: rgba(255, 255, 255, 0.75);
}

.policy-content li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.policy-content strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.policy-content a {
    color: var(--primary-color, #4a90e2);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.policy-content a:hover {
    border-bottom-color: var(--primary-color, #4a90e2);
    opacity: 0.8;
}

/* Tables */
.policy-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(13, 17, 23, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.policy-content table th,
.policy-content table td {
    padding: 16px 20px;
    border: 1px solid rgba(74, 144, 226, 0.15);
    text-align: left;
    font-size: 1rem;
}

.policy-content table th {
    background: rgba(74, 144, 226, 0.2);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.policy-content table tr:hover {
    background: rgba(74, 144, 226, 0.05);
}

/* Info Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(74, 144, 226, 0.05));
    border-left: 5px solid var(--primary-color, #4a90e2);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.15);
}

.highlight-box h3,
.highlight-box h4 {
    margin-top: 0;
    color: var(--primary-color, #4a90e2);
}

.warning-box {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.15), rgba(245, 101, 101, 0.05));
    border-left: 5px solid #f56565;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.15);
}

.warning-box h3,
.warning-box h4 {
    margin-top: 0;
    color: #f56565;
}

.success-box {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.15), rgba(72, 187, 120, 0.05));
    border-left: 5px solid #48bb78;
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.15);
}

.success-box h3,
.success-box h4 {
    margin-top: 0;
    color: #48bb78;
}

.help-box {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2), rgba(72, 187, 120, 0.1));
    border: 2px solid #48bb78;
    padding: 35px 40px;
    margin: 40px 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 25px rgba(72, 187, 120, 0.2);
}

.help-box h3 {
    font-size: 2rem;
    margin: 0 0 15px 0;
    color: #48bb78;
}

.help-box p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.help-box a {
    display: inline-block;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin: 8px;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
}

.help-box a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4);
    opacity: 1;
}

/* Contact Box */
.contact-box {
    background: rgba(13, 17, 23, 0.6);
    border: 2px solid rgba(74, 144, 226, 0.3);
    padding: 40px;
    border-radius: 12px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.contact-box h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color, #4a90e2);
}

.contact-box h3 i {
    margin-right: 10px;
}

.contact-box p {
    margin: 12px 0;
    font-size: 1.05rem;
}

.contact-box a {
    color: var(--primary-color, #4a90e2);
    font-weight: 600;
}

/* Footer Section */
.policy-content > div:last-child {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid rgba(74, 144, 226, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.policy-content > div:last-child p {
    color: rgba(255, 255, 255, 0.5);
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .policy-header {
        padding: 40px 25px;
    }

    .policy-header h1 {
        font-size: 2rem;
    }

    .policy-header h1 i {
        display: block;
        margin: 0 0 15px 0;
        font-size: 2.5rem;
    }

    .policy-content {
        padding: 30px 25px;
    }

    .policy-content h2 {
        font-size: 1.6rem;
        margin-top: 35px;
    }

    .policy-content h3 {
        font-size: 1.3rem;
    }

    .policy-content table {
        font-size: 0.9rem;
    }

    .policy-content table th,
    .policy-content table td {
        padding: 12px 10px;
    }

    .highlight-box,
    .warning-box,
    .success-box {
        padding: 20px;
    }

    .help-box {
        padding: 25px 20px;
    }

    .contact-box {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .policy-container {
        padding: 0 15px 40px;
    }

    .policy-header h1 {
        font-size: 1.7rem;
    }

    .policy-content {
        padding: 25px 20px;
    }

    .policy-content h2 {
        font-size: 1.4rem;
    }

    .policy-content p,
    .policy-content li {
        font-size: 0.95rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 17, 23, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.7);
}
