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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    padding: 24px;
    animation: fadeIn 0.5s ease-in;
    border: 1px solid #2a2a2a;
    position: relative;
}

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

header {
    margin-bottom: 24px;
    border-bottom: 1px solid #00ff88;
    padding-bottom: 12px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.header-title {
    text-align: center;
    flex: 1;
}

header h1 {
    font-size: 1.8em;
    color: #00ff88;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    font-weight: 600;
}

.subtitle {
    font-size: 1.2em;
    color: #888;
}

.back-link {
    display: inline-block;
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 16px;
    border: 1px solid #00ff88;
    border-radius: 8px;
}

.back-link:hover {
    color: #00cc6a;
    border-color: #00cc6a;
    background: rgba(0, 255, 136, 0.1);
}

.info-section {
    background: #252525;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 1px solid #3a3a3a;
}

.info-section h2 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.info-section p {
    color: #ccc;
    line-height: 1.6;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.info-section li {
    padding: 10px 0;
    font-size: 1.1em;
    color: #ddd;
    border-left: 3px solid #ff8800;
    padding-left: 15px;
    margin: 10px 0;
}

.price-info {
    font-size: 1.3em;
    color: #ff8800;
    margin-top: 20px;
    font-weight: 600;
}

.categories {
    margin-bottom: 40px;
}

.categories h2 {
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #3a3a3a;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.check-session-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 2px solid #8b5cf6 !important;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(139, 92, 246, 0.6);
    }
}

.check-session-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.5) !important;
    border-color: #a78bfa !important;
}

.check-session-card .category-name {
    color: #ffffff !important;
    font-weight: 700;
}

.check-session-card .category-price {
    font-size: 16px;
    color: #ffd700;
    margin-top: 10px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: #00ff88;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
    background: linear-gradient(135deg, #252525 0%, #2a2a2a 100%);
}

.category-name {
    font-size: 1.5em;
    font-weight: 600;
    color: #00ff88;
}

.category-price {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 10px;
    font-weight: normal;
}

.countries {
    margin-bottom: 40px;
}

.countries h2 {
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.country-card {
    background: #252525;
    border: 2px solid #3a3a3a;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.country-card:hover {
    border-color: #00ff88;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
    background: #2a2a2a;
}

.country-flag {
    width: 80px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #3a3a3a;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-flag-placeholder {
    width: 80px;
    height: 60px;
    background: #3a3a3a;
    border-radius: 8px;
    margin-bottom: 15px;
}

.country-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #ddd;
}

.info-box {
    background: #252525;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.2em;
    border: 1px solid #3a3a3a;
    color: #ff8800;
}

.info-box strong {
    color: #00ff88;
}

.buy-section {
    max-width: 600px;
    margin: 0 auto;
}

.product-info {
    background: #252525;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #3a3a3a;
}

.country-flag-large {
    text-align: center;
    margin-bottom: 20px;
}

.country-flag-large img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #3a3a3a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.product-info p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #ddd;
}

.product-info strong {
    color: #00ff88;
}

.quantity-selector {
    margin-bottom: 30px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
    color: #fff;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.qty-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: #ff8800;
    color: #000;
    font-size: 1.5em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.qty-btn:hover {
    background: #ffaa33;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

#quantity {
    width: 100px;
    height: 50px;
    text-align: center;
    font-size: 1.5em;
    border: 2px solid #00ff88;
    border-radius: 10px;
    font-weight: 600;
    background: #1a1a1a;
    color: #00ff88;
}

.total-price {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5em;
    color: #fff;
}

.total-price strong {
    color: #ff8800;
    font-size: 1.3em;
}

.payment-method-selector {
    margin-bottom: 30px;
    padding: 20px;
    background: #252525;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
}

.payment-method-selector label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: 600;
    color: #00ff88;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #1a1a1a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method-option:hover {
    border-color: #00ff88;
    background: #2a2a2a;
}

.payment-method-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-method-option input[type="radio"]:checked + span {
    color: #00ff88;
    font-weight: 600;
}

.payment-method-option span {
    color: #ddd;
    font-size: 1em;
}

.buy-button {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    border-radius: 15px;
    font-size: 1.3em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
    background: linear-gradient(135deg, #00cc6a 0%, #00ff88 100%);
}

.buy-button:active {
    transform: translateY(0);
}

.buy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-section {
    margin-top: 30px;
    padding: 30px;
    background: #252525;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #3a3a3a;
}

.payment-section h3 {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.payment-section p {
    color: #ddd;
    margin: 10px 0;
}

.pay-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    margin: 20px 0;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.pay-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.5);
}

.payment-info {
    margin-top: 20px;
    color: #888;
    font-size: 0.9em;
}

.payment-status {
    margin-top: 20px;
}

.success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #00ff88;
}

.success a {
    color: #000;
    background: #00ff88;
}

.error {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #ff4444;
}

.error-message {
    text-align: center;
    padding: 40px;
}

.error-message p {
    font-size: 1.3em;
    color: #ff4444;
    margin-bottom: 30px;
}

.back-button {
    display: inline-block;
    padding: 15px 30px;
    background: #00ff88;
    color: #000;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-button:hover {
    background: #00cc6a;
    transform: translateY(-2px);
}

footer {
    margin-top: 80px;
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section p {
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 0.9em;
}

.footer-contacts {
    text-align: center;
}

.footer-contacts h3 {
    color: #999;
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    opacity: 0.7;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px 15px 0;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.contact-icon {
    font-size: 1.2em;
    opacity: 0.6;
}

.contact-link {
    color: #aaa !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.contact-link:hover {
    color: #ddd !important;
}

.contact-label {
    color: #666;
    font-size: 0.85em;
    opacity: 0.8;
}

.contact-time {
    color: #888;
    font-weight: 500;
    font-size: 0.95em;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .contact-item {
        display: flex;
        margin: 0 0 10px 0;
        width: 100%;
        max-width: 300px;
    }
    
    .footer-contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* === НАВИГАЦИЯ И АВТОРИЗАЦИЯ === */
.header-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.language-selector-top {
    display: flex;
    gap: 5px;
    position: absolute;
    top: 20px;
    right: 20px;
    align-items: center;
}

/* === ИНДИКАТОР УВЕДОМЛЕНИЙ О СООБЩЕНИЯХ === */
.messages-notification {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #252525;
    border: 2px solid #ff4444;
    border-radius: 8px;
    text-decoration: none;
    margin-right: 5px;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.messages-notification:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff6666;
    transform: scale(1.05);
}

.messages-notification-static {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #252525;
    border: 2px solid #ff4444;
    border-radius: 8px;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

.notification-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: bold;
    border: 2px solid #1a1a1a;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 68, 68, 0);
    }
}

.profile-link, .login-link, .logout-link, .home-link {
    padding: 6px 12px;
    background: #252525;
    color: #00ff88;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #00ff88;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.85em;
}

.profile-link:hover, .login-link:hover, .home-link:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.logout-link {
    color: #ff8800;
    border-color: #ff8800;
}

.logout-link:hover {
    background: rgba(255, 136, 0, 0.1);
}

.lang-link-small {
    padding: 8px 12px;
    background: #252525;
    color: #888;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #3a3a3a;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.lang-link-small:hover, .lang-link-small.active {
    color: #00ff88;
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

/* === ФОРМЫ АВТОРИЗАЦИИ === */
.login-section {
    max-width: 500px;
    margin: 0 auto;
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: #252525;
    color: #ddd;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #2a2a2a;
    border-color: #00ff88;
}

.tab-btn.active {
    background: #00ff88;
    color: #000;
    border-color: #00ff88;
}

.auth-form {
    background: #252525;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #3a3a3a;
}

/* Формы входа/регистрации */
.auth-form {
    /* стили добавлены ниже */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #00ff88;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #00ff88;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}


.error-message-box {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #ff4444;
    text-align: center;
}

.language-selector {
    margin-top: 30px;
    text-align: center;
}

.language-selector h3 {
    color: #00ff88;
    margin-bottom: 15px;
}

.lang-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lang-link {
    padding: 10px 20px;
    background: #252525;
    color: #ddd;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #3a3a3a;
    transition: all 0.3s;
}

.lang-link:hover, .lang-link.active {
    color: #00ff88;
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

/* === ЛИЧНЫЙ КАБИНЕТ === */
.profile-section {
    max-width: 800px;
    margin: 0 auto;
}

/* === ПОПОЛНЕНИЕ БАЛАНСА === */
.top-up-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #3a3a3a;
}

.top-up-section h3 {
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 0.95em;
    font-weight: 600;
}

.top-up-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-up-form label {
    color: #ddd;
    font-size: 0.9em;
}

.top-up-form input {
    padding: 8px 12px;
    background: #2d2d2d;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9em;
}

.top-up-form input:focus {
    outline: none;
    border-color: #00ff88;
}

.topup-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9em;
}

.topup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.topup-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
}

.topup-status.success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.topup-status.pending {
    background: rgba(255, 136, 0, 0.1);
    color: #ff8800;
    border: 1px solid #ff8800;
}

.topup-status.error {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
}

/* === СООБЩЕНИЯ В РЕЖИМЕ ДИАЛОГА === */
.messages-section {
    margin-top: 20px;
    padding: 16px;
    background: #252525;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    display: flex;
    flex-direction: column;
    height: 450px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.messages-section h2 {
    color: #00ff88;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
    flex-shrink: 0;
}

.messages-dialog-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding: 8px;
    flex: 1;
    min-height: 0;
}

.messages-list::-webkit-scrollbar {
    width: 8px;
}

.messages-list::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 4px;
}

.messages-list::-webkit-scrollbar-thumb:hover {
    background: #00cc6a;
}

.message-bubble {
    display: flex;
    max-width: 75%;
    margin-bottom: 3px;
    position: relative;
}

.message-left {
    align-self: flex-start;
}

.message-right {
    align-self: flex-end;
}

.message-bubble-content {
    padding: 8px 12px;
    border-radius: 12px;
    word-wrap: break-word;
    position: relative;
    font-size: 0.9em;
    line-height: 1.4;
}

.message-left .message-bubble-content {
    background: #2d2d2d;
    color: #fff;
    border-bottom-left-radius: 4px;
    border: 1px solid #3a3a3a;
}

.message-right .message-bubble-content {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border-bottom-right-radius: 4px;
}

.message-text {
    line-height: 1.5;
    white-space: pre-wrap;
    margin-bottom: 5px;
}

.message-file {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.message-right .message-file {
    border-top-color: rgba(0, 0, 0, 0.2);
}

.file-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.file-link:hover {
    text-decoration: underline;
}

.message-time {
    font-size: 0.7em;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.mark-read-btn-small {
    position: absolute;
    top: 5px;
    right: -25px;
    width: 20px;
    height: 20px;
    background: #00ff88;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mark-read-btn-small:hover {
    background: #00cc6a;
    transform: scale(1.1);
}

.no-messages-text {
    text-align: center;
    color: #888;
    padding: 40px;
    font-style: italic;
}

.reply-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #3a3a3a;
}

.reply-btn {
    padding: 8px 20px;
    background: #2d2d2d;
    color: #00ff88;
    border: 1px solid #00ff88;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.reply-btn:hover {
    background: #00ff88;
    color: #000;
}

.reply-form {
    margin-top: 15px;
}

.reply-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95em;
    resize: vertical;
    margin-bottom: 10px;
}

.reply-textarea:focus {
    outline: none;
    border-color: #00ff88;
}

.reply-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.char-count {
    color: #888;
    font-size: 0.85em;
}

.send-reply-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.send-reply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.reply-status {
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
    display: none;
}

.reply-status.success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.reply-status.error {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.reply-section-global {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #3a3a3a;
    flex-shrink: 0;
}

.reply-form-global {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-upload-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.file-upload-label {
    padding: 6px 12px;
    background: #2d2d2d;
    color: #00ff88;
    border: 1px solid #00ff88;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.3s;
    display: inline-block;
}

.file-upload-label:hover {
    background: #00ff88;
    color: #000;
}

.file-name-display {
    color: #00ff88;
    font-size: 0.9em;
    flex: 1;
}

.remove-file-btn {
    background: #ff4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.remove-file-btn:hover {
    background: #cc3333;
    transform: scale(1.1);
}

.reply-textarea-global {
    width: 100%;
    min-height: 60px;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    font-size: 0.85em;
    resize: vertical;
}

.reply-textarea-global:focus {
    outline: none;
    border-color: #00ff88;
}

.reply-controls-global {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count-global {
    color: #888;
    font-size: 0.85em;
}

.send-reply-btn-global {
    padding: 6px 16px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85em;
}

.send-reply-btn-global:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.reply-status-global {
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
    display: none;
}

.reply-status-global.success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.reply-status-global.error {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.reply-limit-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 136, 0, 0.1);
    border: 1px solid #ff8800;
    border-radius: 8px;
    color: #ff8800;
    font-size: 0.9em;
    flex-shrink: 0;
}

.balance-card {
    background: linear-gradient(135deg, #252525 0%, #2a2a2a 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #00ff88;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.1);
}

.balance-card h2 {
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.balance-amount {
    font-size: 2em;
    color: #ff8800;
    font-weight: 700;
    margin-bottom: 8px;
}

.purchases-section {
    background: #252525;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.purchases-section h2 {
    color: #00ff88;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 600;
}

.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.purchase-item {
    background: #1a1a1a;
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 2px solid #00ff88;
    color: #ddd;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.purchase-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.purchase-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purchase-date {
    color: #888;
    font-size: 0.9em;
}

.purchase-filename {
    color: #aaa;
    font-size: 0.9em;
    word-break: break-all;
}

.download-purchase-btn {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8em;
    transition: all 0.3s;
    width: fit-content;
    margin-top: 4px;
}

.download-purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.purchase-unavailable {
    color: #888;
    font-size: 0.85em;
    font-style: italic;
}

.no-purchases {
    color: #888;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .country-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .header-actions {
        flex-direction: column;
    }

    .header-top {
        flex-direction: column;
        align-items: center;
    }

    .language-selector-top {
        position: static;
        margin-top: 15px;
    }

    .header-title {
        text-align: center;
    }
}
