/* Profile Page Styles - Light Theme */
.profile-page {
    padding: 100px 0 60px;
    min-height: calc(100vh - 300px);
    background: #f8fafc;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

/* Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-avatar-section {
    margin-bottom: 20px;
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 40px;
    color: #94a3b8;
    position: absolute;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--accent, #0ea5e9);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.avatar-edit-btn:hover {
    background: #0284c7;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 14px;
    color: var(--accent, #0ea5e9);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.profile-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
}

/* Profile Navigation */
.profile-nav {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.profile-nav-item:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.profile-nav-item.active {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent, #0ea5e9);
}

.profile-nav-item i {
    width: 20px;
    text-align: center;
}

/* Logout button in profile sidebar */
.profile-logout-btn {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
}

/* Content Area */
.profile-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    min-height: 500px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.profile-tab {
    display: none;
    padding: 24px;
    width: 100%;
}

.profile-tab.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.profile-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

/* Form Styles */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label.full-width {
    grid-column: 1 / -1;
}

.form-label span {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.form-label input,
.form-label select,
.form-label textarea {
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #1e293b;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-label input:focus,
.form-label select:focus,
.form-label textarea:focus {
    outline: none;
    border-color: var(--accent, #0ea5e9);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-label input::placeholder,
.form-label textarea::placeholder {
    color: #94a3b8;
}

.form-label textarea {
    resize: vertical;
    min-height: 100px;
}

.upload-mod-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 20px;
}

/* Danger Zone */
.danger-zone {
    margin-top: 32px;
    padding: 24px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.danger-zone h4 {
    color: #dc2626;
    font-size: 16px;
    margin-bottom: 8px;
}

.danger-zone p {
    color: #7f1d1d;
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* User Menu in Header - Compact layout */
.user-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 4px 4px 4px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 42px;
    box-sizing: border-box;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.user-avatar:hover {
    opacity: 0.8;
}

.user-avatar img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar span {
    font-size: 12px;
    font-weight: 500;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    height: 34px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-page {
        padding-top: 80px;
    }

    .user-avatar span {
        display: none;
    }
}

/* Balance & Payment Section */
.balance-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    color: var(--text);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.balance-header i {
    font-size: 18px;
    color: var(--accent);
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.balance-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.payment-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.payment-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.payment-amounts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.payment-amount-btn {
    padding: 12px 24px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.payment-amount-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #334155;
}

.payment-amount-btn.active {
    background: #334155;
    border-color: #334155;
    color: white;
}

.custom-amount {
    margin-bottom: 24px;
}

.custom-amount label {
    display: block;
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
}

.custom-amount input {
    width: 100%;
    max-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    color: #1e293b;
    transition: border-color 0.2s;
}

.custom-amount input:focus {
    outline: none;
    border-color: var(--accent, #0ea5e9);
}

.payment-methods-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
}

.payment-methods-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

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

.payment-method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #475569;
}

.payment-method-item i {
    width: 24px;
    text-align: center;
    color: var(--accent, #0ea5e9);
}

/* Upload Mod Section - Rounded Design */
.upload-mod-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.upload-mod-section.rounded {
    border-radius: 16px;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.upload-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.upload-limit {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.upload-mod-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-mod-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.upload-mod-form label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.upload-mod-form input[type="text"],
.upload-mod-form select,
.upload-mod-form textarea {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    transition: all 0.2s;
}

.upload-mod-form input[type="text"]:focus,
.upload-mod-form select:focus,
.upload-mod-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.upload-mod-form input[type="text"]::placeholder,
.upload-mod-form textarea::placeholder {
    color: #9ca3af;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* File Upload Area */
.file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.file-upload-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.file-upload-area.has-file {
    border-style: solid;
    border-color: #22c55e;
    background: #f0fdf4;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-upload-content i {
    font-size: 36px;
    color: #6b7280;
}

.file-upload-area.has-file .file-upload-content i {
    color: #22c55e;
}

.file-upload-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.file-upload-hint {
    font-size: 12px;
    color: #9ca3af;
}

/* File Preview Styles - Clean & Minimal */
.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.file-preview-icon {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    flex-shrink: 0;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-preview-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: 12px;
    color: #94a3b8;
}

.file-preview-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.file-preview-remove:hover {
    background: #f1f5f9;
    color: #ef4444;
}

/* Form hint and file input styling */
.form-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.upload-mod-form .form-group input[type="file"]:not(#modFile) {
    padding: 8px 0;
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
}

.upload-mod-form .form-group input[type="file"]:not(#modFile)::file-selector-button {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s;
}

.upload-mod-form .form-group input[type="file"]:not(#modFile)::file-selector-button:hover {
    background: #e2e8f0;
}

.upload-mod-section .form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 14px;
    margin-top: 12px;
}

/* Custom Select for Games */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 0;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.custom-select-trigger:hover {
    border-color: #9ca3af;
}

.custom-select-trigger.open {
    border-color: #111827;
}

.custom-select-trigger i {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.2s;
}

.custom-select-trigger.open i {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-top: none;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.custom-select-dropdown.open {
    display: block;
}

.custom-select-search {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #111827;
    outline: none;
}

.custom-select-search::placeholder {
    color: #9ca3af;
}

.custom-select-options {
    max-height: 220px;
    overflow-y: auto;
}

.custom-select-option {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f3f4f6;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover,
.custom-select-option.selected {
    background: #f9fafb;
}

.custom-select-option.no-results {
    color: #9ca3af;
    cursor: default;
    text-align: center;
}

.custom-select-option.no-results:hover {
    background: #ffffff;
}

/* File Upload Flat */
.file-upload-flat {
    position: relative;
    border: 2px dashed #d1d5db;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.file-upload-flat:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.file-upload-flat input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-upload-content i {
    font-size: 32px;
    color: #6b7280;
}

.file-upload-text {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.file-upload-hint {
    font-size: 12px;
    color: #9ca3af;
}

.file-upload-flat.has-file {
    border-style: solid;
    border-color: #111827;
    background: #f9fafb;
}

.file-upload-flat.has-file .file-upload-content i {
    color: #111827;
}

/* Form Actions Flat */
.form-actions-flat {
    margin-top: 8px;
}

.btn-upload-flat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #111827;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-upload-flat:hover {
    background: #374151;
}

.btn-upload-flat:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.upload-error-flat {
    padding: 16px;
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    font-size: 14px;
    color: #991b1b;
}

/* Upload Mod Section */
.upload-mod-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.upload-mod-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.upload-limit-info {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}

.upload-mod-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-upload-label {
    position: relative;
}

.file-upload-label input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-name {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.upload-error {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
}

/* User Mods List */
.user-mods-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-mod-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s;
}

.user-mod-card:hover {
    border-color: #cbd5e1;
}

.user-mod-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.user-mod-info {
    flex: 1;
    min-width: 0;
}

.user-mod-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-mod-meta {
    font-size: 13px;
    color: #64748b;
}

.user-mod-desc {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.user-mod-actions {
    display: flex;
    gap: 8px;
}

.btn-delete-mod {
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-mod:hover {
    background: #fecaca;
}

/* Downloads List */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s;
}

.download-item:hover {
    border-color: #cbd5e1;
}

.download-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-meta {
    font-size: 13px;
    color: #64748b;
}

.download-date {
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}

.btn-download-again {
    padding: 8px 16px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download-again:hover {
    background: #e2e8f0;
}

/* Modal styles for logout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #64748b;
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    font-size: 15px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
}

.modal-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* User balance display in header */
.user-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
}

.user-balance i {
    font-size: 12px;
}

/* ── Tariff Tab Styles ── */
.current-tariff {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.tariff-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tariff-badge i {
    font-size: 18px;
}

.tariff-info {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.tariff-options {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 24px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.tariff-option {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.tariff-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.tariff-option.current {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
    position: relative;
    z-index: 1;
}

.tariff-option.current .tariff-name {
    color: #3b82f6;
}

.tariff-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.tariff-name {
    font-weight: 600;
    font-size: 18px;
    color: #1e293b;
}

.tariff-price {
    font-weight: 700;
    font-size: 14px;
    color: #3b82f6;
}

.tariff-price i {
    font-size: 12px;
}

.tariff-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.tariff-features li {
    padding: 8px 0;
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tariff-features li::before {
    content: "✓";
    color: #22c55e;
    font-weight: bold;
}

.btn-tariff-select {
    width: 100%;
}

/* ── Tariff Confirmation Panel ── */
.tariff-confirm-panel {
    margin-top: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 20px 24px;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.tariff-confirm-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tariff-confirm-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.tariff-confirm-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tariff-confirm-text {
    flex: 1;
    min-width: 200px;
}

.tariff-confirm-text p {
    margin: 0;
    font-size: 15px;
    color: #1e293b;
    font-weight: 500;
}

.tariff-confirm-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.tariff-confirm-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
}

@media (max-width: 640px) {
    .tariff-confirm-content {
        flex-direction: column;
        text-align: center;
    }
    
    .tariff-confirm-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* ── Upload Success Message ── */
.upload-success-message {
    margin-top: 16px;
    padding: 16px 20px;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.upload-success-message .success-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #166534;
    font-size: 15px;
    font-weight: 500;
}

.upload-success-message .success-content i {
    font-size: 20px;
    color: #22c55e;
}

/* ── Tariff Renewal Section ── */
.tariff-renewal-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.renewal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.renewal-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.renewal-card h4 i {
    color: #3b82f6;
    font-size: 18px;
}

.renewal-info-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.renewal-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.renewal-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.renewal-date {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
}

.renewal-price {
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.renewal-price i {
    font-size: 16px;
}

.btn-renew {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-renew:hover {
    background: #2563eb;
}

.btn-renew:active {
    transform: translateY(1px);
}

@media (max-width: 640px) {
    .renewal-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .renewal-info-main {
        flex-direction: column;
        gap: 16px;
    }
}

/* Mod Page Cards - Clickable rows */
.mod-page-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.mod-page-card:hover {
    border-color: #3b6ef5;
    box-shadow: 0 4px 12px rgba(59, 110, 245, 0.1);
}

.mod-page-preview {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.mod-page-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mod-page-no-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 20px;
}

.mod-page-info {
    flex: 1;
    min-width: 0;
}

.mod-page-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-page-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.mod-page-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #94a3b8;
}

.mod-page-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mod-page-arrow {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
}

.mod-page-card:hover .mod-page-arrow {
    color: #3b6ef5;
}
