/* Modern CS2 Theme CSS - Compatible with PHP 5.6 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* CS2 Color Palette */
:root {
    --cs2-orange: #ff6b35;
    --cs2-blue: #4a9eff;
    --cs2-dark: #0f1419;
    --cs2-gray: #2a3441;
    --cs2-light-gray: #4a5568;
    --cs2-gold: #ffd700;
    --cs2-silver: #c0c0c0;
}

/* Header Styles */
.header {
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--cs2-orange);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 10px var(--cs2-orange));
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--cs2-orange), var(--cs2-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Container */
.main-container {
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Cards Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: rgba(42, 52, 65, 0.8);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cs2-orange), var(--cs2-blue));
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--cs2-orange);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 120px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--cs2-orange), var(--cs2-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cs2-orange);
}

.service-subtitle {
    color: var(--cs2-light-gray);
    font-size: 0.9rem;
}

/* Package Selection */
.package-list {
    list-style: none;
    margin: 1.5rem 0;
}

.package-item {
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1rem;
    margin: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.package-item:hover {
    border-color: var(--cs2-blue);
    background: rgba(74, 158, 255, 0.1);
}

.package-item.selected {
    border-color: var(--cs2-orange);
    background: rgba(255, 107, 53, 0.1);
}

.package-item input[type="checkbox"] {
    display: none;
}

.package-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cs2-gold);
    margin-bottom: 0.5rem;
}

.package-description {
    color: var(--cs2-light-gray);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--cs2-orange), #ff8c42);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--cs2-blue), #6bb6ff);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.6);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--cs2-gray);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--cs2-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cs2-orange);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cs2-orange);
}

.close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--cs2-light-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--cs2-orange);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--cs2-orange);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--cs2-light-gray);
    border-radius: 8px;
    background: rgba(15, 20, 25, 0.8);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--cs2-orange);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.form-control::placeholder {
    color: var(--cs2-light-gray);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(45deg, var(--cs2-orange), #ff8c42);
    color: white;
}

.badge-secondary {
    background: linear-gradient(45deg, var(--cs2-blue), #6bb6ff);
    color: white;
}

/* User Info */
.user-info {
    background: rgba(15, 20, 25, 0.6);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--cs2-orange);
}

.user-info h3 {
    color: var(--cs2-orange);
    margin-bottom: 0.5rem;
}

.user-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Service Selection */
.service-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.service-option {
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.service-option:hover {
    border-color: var(--cs2-blue);
    background: rgba(74, 158, 255, 0.1);
    transform: translateY(-2px);
}

.service-option h4 {
    color: var(--cs2-orange);
    margin-bottom: 0.5rem;
}

.service-option img {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: var(--cs2-orange);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .service-selection {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step-item {
        padding: 2rem;
        min-height: 100px;
    }
    
    .step-content h3 {
        font-size: 1.3rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .steps-grid {
        gap: 1rem;
    }
    
    .step-item {
        padding: 1.5rem;
        min-height: 90px;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* CS2 Specific Animations */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--cs2-orange); }
    50% { box-shadow: 0 0 20px var(--cs2-orange), 0 0 30px var(--cs2-orange); }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cs2-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--cs2-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c42;
}

/* Additional Styles for New Components */
.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(42, 52, 65, 0.3);
    border-radius: 15px;
    border: 2px solid var(--cs2-orange);
}

.welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--cs2-orange), var(--cs2-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-content p {
    font-size: 1.2rem;
    color: var(--cs2-light-gray);
    margin-bottom: 2rem;
}

/* Simple Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 20, 25, 0.6);
    border-radius: 10px;
    border: 2px solid var(--cs2-blue);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: var(--cs2-orange);
}

.info-icon {
    font-size: 2.5rem;
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--cs2-orange), var(--cs2-blue));
    border-radius: 50%;
    color: white;
}

.info-text h3 {
    color: var(--cs2-orange);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-text p {
    color: var(--cs2-light-gray);
    margin: 0;
    font-size: 0.9rem;
}

/* How it works section */
.how-it-works {
    margin-bottom: 3rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--cs2-orange);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem;
    background: rgba(15, 20, 25, 0.6);
    border-radius: 15px;
    border: 2px solid var(--cs2-blue);
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
}

.step-item:hover {
    transform: translateY(-5px);
    border-color: var(--cs2-orange);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--cs2-orange), var(--cs2-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--cs2-orange);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1.3;
}

.step-content p {
    color: var(--cs2-light-gray);
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}

.services-section {
    margin-bottom: 3rem;
}

.services-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--cs2-orange);
}

.service-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Removed supporters section - private system */

.footer {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(15, 20, 25, 0.8);
    border-top: 2px solid var(--cs2-orange);
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
    color: var(--cs2-light-gray);
}

.footer-content a {
    color: var(--cs2-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--cs2-blue);
}

/* Enhanced Modal Styles */
.modal-content {
    position: relative;
}

.modal-body {
    padding: 2rem;
}

.user-info {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(74, 158, 255, 0.1));
    border: 2px solid var(--cs2-orange);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.user-info h3 {
    color: var(--cs2-orange);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.user-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.user-details .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.user-details a {
    color: var(--cs2-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.user-details a:hover {
    color: var(--cs2-orange);
}

/* Service Selection Grid */
.service-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.service-option {
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cs2-orange), var(--cs2-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-option:hover::before {
    transform: scaleX(1);
}

.service-option:hover {
    border-color: var(--cs2-blue);
    background: rgba(74, 158, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 158, 255, 0.3);
}

.service-option h4 {
    color: var(--cs2-orange);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.service-option .badge {
    margin: 0.5rem 0;
    display: inline-block;
}

.service-option img {
    width: 60px;
    height: 60px;
    margin: 1rem 0;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
    transition: transform 0.3s ease;
}

.service-option:hover img {
    transform: scale(1.1);
}

/* Package List Enhancements */
.package-list {
    list-style: none;
    margin: 1.5rem 0;
}

.package-item {
    background: rgba(15, 20, 25, 0.6);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0.75rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s;
}

.package-item:hover::before {
    left: 100%;
}

.package-item:hover {
    border-color: var(--cs2-blue);
    background: rgba(74, 158, 255, 0.1);
    transform: translateX(5px);
}

.package-item.selected {
    border-color: var(--cs2-orange);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.package-item input[type="checkbox"] {
    display: none;
}

.package-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cs2-gold);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.package-description {
    color: var(--cs2-light-gray);
    font-size: 1rem;
    line-height: 1.4;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: var(--cs2-orange);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Error States */
.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #dc3545;
    text-align: center;
}

.success-message {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #28a745;
    text-align: center;
}
