/* custom.css */

/* ========================================
   GUIDE PAGE STYLES - USING DEFAULT STRUCTURE
   ======================================== */

/* Guide Layout - add class to resources__body for guide pages */
.resources__body.guide-layout {
    position: relative;
    display: flex;
    gap: 2rem;
}

/* Guide Sidebar */
.guide-sidebar {
    width: 350px;
    min-width: 350px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-height: 600px;
    overflow: hidden;
}

.guide-nav {
    padding: 0;
}

/* Guide Content Area */
.guide-content {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    min-height: 600px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
}

.nav-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-left: 3px solid #ff6b35;
}

.nav-item.active {
    background: rgba(255, 107, 53, 0.15);
    border-left: 3px solid #ff6b35;
}

.nav-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
    min-width: 2rem;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 53, 0.4);
    position: relative;
}

.nav-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ff6b35;
    border-radius: 2px;
}

.nav-content {
    flex: 1;
}

.nav-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'BeaufortforLOL', 'Philosopher', sans-serif;
}

.nav-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    line-height: 1.3;
    font-family: 'BeaufortforLOL', 'Philosopher', sans-serif;
}

/* Content sections within guide-content */
.guide-content {
    max-height: 80vh;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h2 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    font-family: 'BeaufortforLOL', 'Philosopher', sans-serif;
}

.content-body {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-family: 'BeaufortforLOL', 'Philosopher', sans-serif;
}

/* Feature List Styles */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ff6b35;
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-list li:hover {
    color: #ffffff;
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateX(5px);
}

.feature-list li:hover::before {
    opacity: 1;
}

/* Rates Grid */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.rate-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.rate-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
}

.rate-value {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Quest Rates */
.quest-rates {
    margin-top: 2rem;
}

.quest-rates h3 {
    color: #ff6b35;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'BeaufortforLOL', 'Philosopher', sans-serif;
}

.quest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quest-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.5;
}

.quest-list li strong {
    color: #ff6b35;
}

/* Content Placeholder */
.content-placeholder {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'BeaufortforLOL', 'Philosopher', sans-serif;
}

.placeholder-image {
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.content-placeholder p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.content-placeholder ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-placeholder ul li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design for Guide */
@media (max-width: 1024px) {
    .resources__body.guide-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .guide-sidebar {
        width: 100%;
        min-width: auto;
        min-height: auto;
    }
    
    .guide-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .nav-item {
        padding: 1rem;
    }
    
    .guide-content {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .guide-nav {
        grid-template-columns: 1fr;
    }
    
    .nav-item {
        padding: 1rem 1.5rem;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-content {
        padding: 1.5rem;
    }
}

/* ========================================
   RESPONSIVE LOGIN FORM STYLES
   ======================================== */

/* Main Container - Centers form vertically and horizontally */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
}

/* Form Wrapper - Maximum width and consistent padding */
.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.login-form-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Header Section */
.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.login-logo-link:hover {
    transform: scale(1.05);
}

.login-logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Title Section */
.login-title-section {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    font-family: 'BeaufortforLOL', 'Philosopher', 'Times New Roman', Times, serif;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 400;
    font-family: 'BeaufortforLOL', 'Philosopher', 'Times New Roman', Times, serif;
}

/* Validation Errors */
.login-errors {
    margin-bottom: 1rem;
}

.login-errors .font-medium {
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-errors li {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    color: #ff6b35;
    font-size: 0.875rem;
}

.login-status {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    color: #4caf50;
    font-size: 0.875rem;
    text-align: center;
}

/* Form Styling */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Field Container */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Form Labels */
.form-label {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    font-family: 'BeaufortforLOL', 'Philosopher', 'Times New Roman', Times, serif;
}

/* Form Inputs */
.form-input {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'BeaufortforLOL', 'Philosopher', 'Times New Roman', Times, serif;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:invalid {
    border-color: #ff6b35;
}

/* Form Error Messages */
.form-error {
    color: #ff6b35;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    min-height: 1rem;
    font-family: 'BeaufortforLOL', 'Philosopher', 'Times New Roman', Times, serif;
}

/* Form Help Text */
.form-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-style: italic;
    font-family: 'BeaufortforLOL', 'Philosopher', 'Times New Roman', Times, serif;
}

/* Form Options (Remember Me & Forgot Password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.5rem 0;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Custom Checkbox */
.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #ff6b35;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-checkbox:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    font-family: 'BeaufortforLOL', 'Philosopher', 'Times New Roman', Times, serif;
}

.checkbox-label:hover {
    color: #ffffff;
}

/* Forgot Password Link */
.forgot-link {
    color: #ff6b35;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.forgot-link:hover {
    color: #ff8c5a;
    text-decoration: underline;
}

.forgot-link:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Login Button */
.login-button {
    width: 100%;
    min-height: 48px;
    background-image: url('/template/site/destarion/images/btn/btn.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 8px;
    color: #292120;
    font-family: "BeaufortforLOL", "Philosopher", "Times New Roman", Times, serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(232, 202, 160, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
}

.login-button:hover {
    background-image: url('/template/site/destarion/images/btn/btn-2.png');
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.login-button:active {
    background-image: url('/template/site/destarion/images/btn/btn-3.png');
    transform: translateY(0);
}

.login-button:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer Section */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.register-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
    font-family: 'BeaufortforLOL', 'Philosopher', 'Times New Roman', Times, serif;
}

.register-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'BeaufortforLOL', 'Philosopher', 'Times New Roman', Times, serif;
}

.register-link:hover {
    color: #ff8c5a;
    text-decoration: underline;
}

.register-link:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Accessibility Features */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Management */
.login-form-wrapper:focus-within {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 107, 53, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .login-form-wrapper {
        border: 2px solid #ffffff;
    }
    
    .form-input {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .form-input:focus {
        border-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .login-form-wrapper,
    .login-logo-link,
    .form-input,
    .login-button,
    .forgot-link,
    .register-link,
    .checkbox-label {
        transition: none;
    }
    
    .login-form-wrapper:hover {
        transform: none;
    }
    
    .login-button:hover {
        transform: none;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .login-form-wrapper {
        padding: 2.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .login-container {
        padding: 2rem;
    }
    
    .login-form-wrapper {
        padding: 3rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-logo {
        width: 4rem;
        height: 4rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .login-form-wrapper {
        max-width: 450px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .login-form-wrapper {
        max-width: 500px;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 575.98px) {
    .login-container {
        padding: 0.5rem;
        min-height: 100vh;
    }
    
    .login-form-wrapper {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 8px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-logo {
        width: 3rem;
        height: 3rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .form-input {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .login-button {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .form-checkbox {
        width: 1.5rem;
        height: 1.5rem; /* Larger touch target */
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .login-container {
        min-height: auto;
        padding: 1rem;
    }
    
    .login-form-wrapper {
        padding: 1.5rem;
    }
    
    .login-title-section {
        margin-bottom: 1rem;
    }
    
    .login-form {
        gap: 0.75rem;
    }
}

/* ========================================
   REGISTER FORM SPECIFIC STYLES
   ======================================== */

/* Login form base styles */
.body-login .login-form-wrapper {
    max-width: 400px; /* Standard width for login form */
}

/* Register form adjustments for longer form */
.body-register .login-form {
    gap: 0.875rem; /* Slightly smaller gap for register form */
}

.body-register .login-form-wrapper {
    max-width: 450px; /* Slightly wider for register form */
}

/* Terms and Privacy Policy styling */
.form-field .custom-control {
    margin-bottom: 0;
}

.form-field .custom-control-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
}

.form-field .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.form-field .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* Terms links styling */
.terms-link {
    color: #ff6b35;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-family: 'BeaufortforLOL', 'Philosopher', 'Times New Roman', Times, serif;
}

.terms-link:hover {
    color: #ff8c5a;
    text-decoration: none;
}

.terms-link:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Referral code field styling */
.form-field input[name="kode_referal"] {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
}

.form-field input[name="kode_referal"]:focus {
    background: rgba(255, 107, 53, 0.15);
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* PIN field specific styling */
.form-field input[name="pin"] {
    text-align: center;
    letter-spacing: 0.5rem;
    font-family: monospace;
}

/* Responsive adjustments for register form */
@media (max-width: 575.98px) {
    .body-register .login-form-wrapper {
        max-width: 100%;
        padding: 1.25rem;
    }
    
    .body-register .login-form {
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .body-register .login-form-wrapper {
        max-width: 500px;
    }
}

/* Auth Form Layout */
.auth-form {
    margin-top: 1rem !important;
}

/* Auth Options Layout */
.auth-options {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
}

/* Auth Link Styling */
.auth-link {
    color: #ff6b35 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    transition: color 0.3s ease !important;
}

.auth-link:hover {
    color: #ff8c5a !important;
    text-decoration: none !important;
}

/* Auth Register Text */
.auth-register-text {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
}

/* Auth Button Styling */
.auth-btn {
    background-image: url('/template/site/destarion/images/btn/btn.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 0 !important;
    background-color: transparent !important;
    border-radius: 5px !important;
    outline: 0 !important;
    font-family: "BeaufortforLOL", "Philosopher", "Times New Roman", Times, serif !important;
    color: #292120 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 0 rgba(232, 202, 160, 0.8) !important;
    width: 100% !important;
    min-height: 40px !important;
}

.auth-btn:hover {
    background-image: url('/template/site/destarion/images/btn/btn-2.png') !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    color: #292120 !important;
}

.auth-btn:active {
    background-image: url('/template/site/destarion/images/btn/btn-3.png') !important;
    transform: translateY(0) !important;
}

/* Form Input Styling */
.auth-card .form-control.auth-input {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    height: 42px !important;
}

.auth-card .form-control.auth-input:focus {
    background-color: rgba(0, 0, 0, 0.6) !important;
    border-color: #ff6b35 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25) !important;
    color: #ffffff !important;
    outline: none !important;
}

.auth-card .form-control.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Custom Checkbox Styling */
.auth-card .custom-control-input {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.auth-card .custom-control-label {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding-left: 0.5rem !important;
}

.auth-card .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #ff6b35 !important;
    border-color: #ff6b35 !important;
}

.auth-card .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25) !important;
}

/* Validation Errors Styling */
.auth-card .text-red-600 {
    color: #ff6b35 !important;
}

.auth-card .text-red-600 ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.auth-card .text-red-600 li {
    background: rgba(255, 107, 53, 0.1) !important;
    border: 1px solid rgba(255, 107, 53, 0.3) !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-card {
        padding: 1rem !important;
        margin: 0.5rem !important;
    }
    
    .auth-options {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    .auth-title {
        font-size: 1.25rem !important;
    }
    
    .auth-logo {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
}

@media (min-width: 1200px) {
    .auth-card {
        max-width: 350px !important;
    }
}

/* Fix logo visibility */
.hero__logotype {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.logotype {
    display: block;
    text-decoration: none;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3));
}

.logotype:hover {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.6));
}

.logotype__img {
    display: block;
    max-width: 100%;
    height: auto;
    width: 37.5rem;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity, filter;
}

.logotype__img_hover_animation {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 37.5rem;
    transform: scale(0.8) rotate(-5deg) translateY(10px);
    filter: blur(2px);
    will-change: transform, opacity, filter;
}

.logotype:hover .logotype__img {
    opacity: 0.3;
    transform: scale(0.95) rotate(-2deg) translateY(-5px);
    filter: blur(1px) brightness(0.9);
}

.logotype:hover .logotype__img_hover_animation {
    opacity: 1;
    transform: scale(1.02) rotate(0deg) translateY(0px);
    filter: blur(0px) brightness(1.1);
}

/* Enhanced Logo Animation */
@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 107, 53, 0.8)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3)); }
}

@keyframes logoBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes logoShimmer {
    0% { filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3)) brightness(1); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 107, 53, 0.9)) brightness(1.2); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.3)) brightness(1); }
}

@keyframes logoFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.9);
        filter: blur(5px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(15px) scale(0.95);
        filter: blur(2px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes heroFadeInDown {
    0% { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.95);
        filter: blur(8px);
    }
    30% {
        opacity: 0.3;
        transform: translateY(-30px) scale(0.97);
        filter: blur(4px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes heroContentAppear {
    0% { 
        opacity: 0; 
        transform: translateY(20px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.logotype {
    animation: logoFadeIn 1.5s ease-out forwards;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: inline-block;
}

.logotype.fade-in-complete {
    animation: logoGlow 3s ease-in-out infinite;
}

.logotype:hover {
    animation: logoShimmer 0.6s ease-in-out, logoBounce 0.6s ease-in-out;
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.9));
    cursor: pointer;
    z-index: 10;
}

/* Enhanced Hero Content Animation */
.hero__content {
    opacity: 0;
    animation: heroFadeInDown 1.2s ease-out 0.3s forwards;
}

.hero__title {
    opacity: 0;
    animation: heroContentAppear 0.8s ease-out 0.8s forwards;
}

.hero__subtitle {
    opacity: 0;
    animation: heroContentAppear 0.8s ease-out 1.0s forwards;
}

.hero__desc {
    opacity: 0;
    animation: heroContentAppear 0.8s ease-out 1.2s forwards;
}

.hero__btns {
    opacity: 0;
    animation: heroContentAppear 0.8s ease-out 1.4s forwards;
}

/* Smooth hover effects for hero button */
.hero__btns .btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.hero__btns .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.hero__btns .btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Force show animated elements - Disabled for smooth animation */
[data-gw-anime="fadeInUp"] {
    opacity: 0;
    transform: translateY(20px);
    animation: heroContentAppear 0.8s ease-out forwards;
}

[data-gw-anime="fadeInDown"] {
    opacity: 0;
    transform: translateY(-20px);
    animation: heroFadeInDown 1.2s ease-out forwards;
}

/* Responsive logo size */
@media (max-width: 768px) {
    .logotype__img,
    .logotype__img_hover_animation {
        width: 400px !important;
    }
}

/* Features Slider Styles */
.features__container {
    position: relative;
    overflow: hidden;
}

.features__wrap {
    position: relative;
    margin-bottom: 2rem;
}

.features__list {
    position: relative;
    overflow: hidden;
}

.features__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.features__slide.swiper-slide-active {
    opacity: 1;
    visibility: visible;
}

.features__arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.features__arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
    max-width: 1200px;
    left: 50%;
    margin-left: -600px;
    padding: 0 40px;
    box-sizing: border-box;
}

.features__arrow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    border: none;
}

.features__arrow:hover {
    transform: scale(1.05) translateY(-2px);
}

.features__arrow:active {
    transform: scale(0.98) translateY(0px);
}

.features__arrow_prev {
    left: 0;
}

.features__arrow_next {
    right: 0;
}

.features__arrow img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.features__arrow:hover img {
    transform: scale(1.1);
}

.features__thumbs {
    margin-top: 2rem;
}

.features__thumbs-list {
    position: relative;
    overflow: hidden;
}

.features__slide-thumbs {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    transform: scale(0.9);
}

.features__slide-thumbs.swiper-slide-thumb-active {
    opacity: 1;
    transform: scale(1);
}

.features__thumb {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.features__slide-thumbs.swiper-slide-thumb-active .features__thumb {
    border-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.features__thumb-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.features__slide-thumbs:hover .features__thumb-img {
    transform: scale(1.1);
}

.feature {
    padding: 2rem;
    background: transparent;
    border-radius: 12px;
}

.feature__title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
}

.feature__desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
}

.color-accent {
    color: #ff6b35;
    font-weight: 600;
}

/* Responsive for features */
@media (max-width: 768px) {
    .features__arrows {
        padding: 0 20px;
        margin-left: -50vw;
        left: 50vw;
        max-width: 100vw;
    }
    
    .features__arrow {
        width: 50px;
        height: 50px;
    }
    
    .features__arrow img {
        width: 24px;
        height: 24px;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .feature__title {
        font-size: 1.2rem;
    }
    
    .feature__desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .features__arrows {
        padding: 0 15px;
    }
    
    .features__arrow {
        width: 45px;
        height: 45px;
    }
    
    .features__arrow img {
        width: 20px;
        height: 20px;
    }
    
    .feature {
        padding: 1rem;
    }
    
    .feature__title {
        font-size: 1.1rem;
    }
    
    .feature__desc {
        font-size: 0.85rem;
    }
}

/* Server Status Colors */
.server__status.text-success {
    color: #9ccc65 !important;
}

.server__status.text-danger {
    color: #ef5350 !important;
}

/* Fallback fonts for missing custom fonts */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.hero__title,
.hero__subtitle,
.hero__desc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.server__title,
.server__desc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Mobile Menu Fixes */
.gw-burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.gw-burger__box {
    width: 30px;
    height: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gw-burger__line {
    width: 100%;
    height: 3px;
    background-color: #aea599;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.gw-burger__line_pos_top {
    transform: translateY(0);
}

.gw-burger__line_pos_middle {
    opacity: 1;
}

.gw-burger__line_pos_bottom {
    transform: translateY(0);
}

/* Active state for burger menu */
.mob-menu-active .gw-burger__line_pos_top {
    transform: rotate(45deg) translateY(-50%);
    transform-origin: center top;
    top: 50%;
    right: 0;
    transition: top .3s .1s, right .3s .1s, left .3s 0s, bottom .3s .1s, opacity 0s .1s, transform .3s .4s;
}

.mob-menu-active .gw-burger__line_pos_middle {
    opacity: 0;
    transition: opacity .3s .3s, transform .3s .1s, left .3s .3s;
    left: 100%;
}

.mob-menu-active .gw-burger__line_pos_bottom {
    transform: rotate(-45deg) translateY(50%);
    transform-origin: center bottom;
    bottom: 50%;
    right: 0;
    left: 0;
    transition: top .3s .1s, right .3s .1s, left .1s .3s, bottom .3s .1s, opacity 0s .1s, transform .3s .4s;
}

/* Show burger menu on mobile */
@media (max-width: 1199.99px) {
    .gw-burger {
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10;
        cursor: pointer;
        pointer-events: all;
    }
    
    .gw-burger__box {
        width: 1.5rem;
        height: 1.1875rem;
        border-radius: 0;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    
    .gw-burger__line {
        height: .125rem;
        position: absolute;
        left: 0;
        right: 0;
        background-color: #aea599;
        border-radius: 0;
        transition: top .3s .3s, right .3s .3s, left .3s .2s, bottom .3s .3s, opacity .3s .4s, transform .3s 0s;
    }
    
    .gw-burger__line_pos_top {
        top: 0;
    }
    
    .gw-burger__line_pos_middle {
        top: 50%;
        left: 25%;
        transform: translateY(-50%);
        transition: all 0s .4s;
    }
    
    .gw-burger__line_pos_bottom {
        bottom: 0;
        left: 50%;
    }
}

/* Fix icon size to 16x16 pixels */
.resources__btns .bttn img,
.resources__btns .bttn__ico {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
}

/* Modal fixes */
.fancybox-modal .mdl {
    display: block !important;
    position: relative;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.fancybox-modal .mdl__inner {
    background: rgba(23, 25, 29, 0.95);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.fancybox-modal .mdl__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: rgba(255, 107, 53, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
    transition: all 0.3s ease;
}

.fancybox-modal .mdl__close:hover {
    background: rgba(255, 107, 53, 1);
    transform: scale(1.1);
}

.fancybox-modal .mdl__close::before {
    content: '×';
    line-height: 1;
}

/* Fallback modal styles */
body.modal-open {
    overflow: hidden;
}

/* Modal wrapper styles */
.modal-wrapper {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-wrapper.show {
    opacity: 1;
    visibility: visible;
}

.modal-fallback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.modal-fallback .mdl {
    background: rgba(23, 25, 29, 0.95);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.fancybox-modal .files__btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.fancybox-modal .files__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.fancybox-modal .files__link {
    display: block;
    color: #ff6b35;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.fancybox-modal .files__link:hover {
    color: #ff8c42;
}

/* Enhanced Modal Styles for Game Client Download */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.modal-wrapper .mdl {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.mdl_animated {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Download Button Enhancements */
.files__btn, .files__link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.files__btn:hover, .files__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 183, 81, 0.3);
}

.files__btn.downloading, .files__link.downloading {
    opacity: 0.7;
    pointer-events: none;
}

.download-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Download Notification Styles */
.download-notification__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.download-notification__icon {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.download-notification__text {
    line-height: 1.4;
}

/* Modal Close Button Enhancement */
.mdl__close {
    transition: all 0.2s ease;
}

.mdl__close:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Files Info Section */
.files__info {
    background: rgba(255, 183, 81, 0.1);
    border: 1px solid rgba(255, 183, 81, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.files__info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 183, 81, 0.1);
}

.files__info-item:last-child {
    border-bottom: none;
}

.files__info-label {
    color: #c1b9af;
    font-size: 0.875rem;
    font-weight: 500;
}

.files__info-value {
    color: #ffb751;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Files List Enhancement */
.files__list {
    position: relative;
}

.files__list::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffb751, transparent);
    border-radius: 2px;
}

/* Enhanced Button and Link Styles */
.files__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.files__btn-text {
    font-size: 0.875rem;
    font-weight: bold;
}

.files__btn-size {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 500;
}

.files__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 183, 81, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.files__link:hover {
    border-color: rgba(255, 183, 81, 0.6);
    background: rgba(255, 183, 81, 0.05);
}

.files__link-text {
    font-weight: 600;
}

.files__link-size {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 500;
}

/* Enhanced Modal Background */
.fancybox-modal .mdl__inner {
    background: linear-gradient(135deg, rgba(23, 25, 29, 0.95), rgba(35, 30, 25, 0.95));
    border: 2px solid rgba(255, 183, 81, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Download Button Special Effects */
.files__btn {
    background: linear-gradient(135deg, #ffb751, #ff8c42) !important;
    border: none !important;
    color: #000 !important;
    font-weight: bold !important;
    text-shadow: none !important;
    position: relative;
    overflow: hidden;
}

.files__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.files__btn:hover::before {
    left: 100%;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .mdl {
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .files__list {
        gap: 12px;
    }
    
    .files__info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .files__info-item {
        padding: 0.25rem 0;
    }
    
    .files__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .files__link-size {
        align-self: flex-end;
    }
    
    .download-notification {
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }
    
    .fancybox-modal .mdl__inner {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .files__info {
        padding: 0.5rem;
    }
    
    .files__info-label,
    .files__info-value {
        font-size: 0.8rem;
    }
    
    .files__btn-text,
    .files__link-text {
        font-size: 0.8rem;
    }
    
    .files__btn-size,
    .files__link-size {
        font-size: 0.7rem;
    }
}