/* Modern Dark Theme CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #e8e8e8;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: #a8a8a8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

nav a:first-child {
    font-weight: 700;
    color: #6366f1;
    font-size: 1.1rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Cards */
.card {
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.card h1, .card h2, .card h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.card h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

/* Form Elements */
input, select, textarea {
    background: rgba(40, 40, 40, 0.8);
    color: #e8e8e8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin: 0.5rem 0;
    width: 100%;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: rgba(50, 50, 50, 0.9);
}

input::placeholder, textarea::placeholder {
    color: #888;
}

/* Buttons */
button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin: 1rem 0;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5855ea, #7c3aed);
}

button:active {
    transform: translateY(0);
}

button[type="submit"] {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

tr:last-child td {
    border-bottom: none;
}

/* Inline buttons in tables */
table button {
    width: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    font-size: 0.85rem;
}

/* Success/Error Messages */
.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Admin Panel Specific */
.admin-nav {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.admin-nav a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-nav a:hover {
    background: rgba(139, 92, 246, 0.2);
}

/* Wallet Balance */
.balance {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Footer */
footer {
    background: rgba(20, 20, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 2rem;
    color: #888;
    margin-top: 4rem;
}

/* Credit Card Styles */
.credit-card-item {
    border: 2px solid #4f46e5;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.credit-card-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    width: fit-content;
}

.card-logo-svg {
    width: 32px;
    height: 20px;
    border-radius: 4px;
}

.card-details {
    color: #a5b4fc;
    font-size: 13px;
    margin: 4px 0;
}

.card-preview {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
}

.card-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-preview-number {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: 2px;
}

.card-preview-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #cbd5e1;
}

.card-preview-holder {
    font-size: 13px;
    color: #e2e8f0;
    text-transform: uppercase;
}

.card-hidden-info {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
}

.card-reveal-info {
    background: #059669;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
}

.card-reveal-info h4 {
    color: #d1fae5;
    margin-bottom: 8px;
}

.card-reveal-info p {
    color: #a7f3d0;
    margin: 4px 0;
    font-size: 14px;
}

.card-data-row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.card-data-label {
    font-weight: bold;
    color: #d1fae5;
}

.card-data-value {
    color: #a7f3d0;
    font-weight: normal;
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.user-details .username {
    font-weight: 600;
    color: #e8e8e8;
    font-size: 0.9rem;
}

.user-details .telegram-username {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.online-status {
    font-size: 0.7rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.online-status.online {
    color: #10b981;
}

.online-status.offline {
    color: #ef4444;
}

/* Profile page enhancements */
.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.profile-section {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.profile-section h4 {
    margin: 0 0 1rem 0;
    color: #e8e8e8;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.telegram-section {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-section {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .card {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 100%;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .user-details {
        text-align: center;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .card h1 {
        font-size: 1.8rem;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    input, button, select, textarea {
        padding: 0.8rem 1rem;
    }
}

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

.card {
    animation: fadeIn 0.6s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5855ea;
}
