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

:root {
    --primary: #00f5ff;
    --primary-dark: #0099ff;
    --secondary: #7b2ff7;
    --success: #00ff88;
    --danger: #ff0055;
    --warning: #ffaa00;
    --dark: #0a0e27;
    --dark-light: #151b3d;
    --glass-bg: rgba(21, 27, 61, 0.7);
    --glass-border: rgba(0, 245, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #8b9dc3;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(123, 47, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transition: left 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-icon {
    font-size: 28px;
    animation: pulse 2s ease infinite;
}

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

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 0.2;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-icon {
    font-size: 18px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    max-width: 500px;
    width: 100%;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-size: 42px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.logo-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.label-icon {
    font-size: 18px;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(10, 14, 39, 0.8);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.4);
}

.btn-glow {
    animation: glow 2s ease infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 245, 255, 0.6); }
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.btn:hover .btn-shine {
    left: 100%;
    transition: left 0.5s;
}

.btn-secondary {
    background: var(--dark-light);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--dark);
    border-color: var(--primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00cc70);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #cc0044);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.switch-form {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 14px;
}

.switch-form a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* User Dashboard Card */
.user-dashboard-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(123, 47, 247, 0.05));
    border-color: rgba(0, 245, 255, 0.2);
}

.user-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 245, 255, 0.4);
}

.user-details h3 {
    margin-bottom: 8px;
    font-size: 24px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.badge-vip {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.badge-admin {
    background: linear-gradient(135deg, var(--danger), #cc0044);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4);
}

.badge-master_admin {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.4);
}

.user-stats-grid {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.stat-icon {
    font-size: 28px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Upgrade Card */
.upgrade-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
}

.upgrade-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.upgrade-icon {
    font-size: 48px;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upgrade-text h3 {
    margin-bottom: 8px;
    font-size: 24px;
}

.upgrade-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.upgrade-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.feature-item {
    padding: 12px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 14px;
}

.upgrade-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.upgrade-links .btn {
    flex: 1;
    min-width: 250px;
}

.upgrade-note {
    text-align: center;
    font-size: 13px;
    color: var(--warning);
    font-style: italic;
    padding: 12px;
    background: rgba(255, 170, 0, 0.1);
    border-radius: 10px;
}

/* Market Status */
.market-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.market-status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.status-icon {
    font-size: 32px;
}

.status-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
}

.status-open {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-closed {
    background: rgba(255, 0, 85, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.timezone-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
}

.header-icon {
    font-size: 28px;
}

/* Pair Selection */
.pair-selection-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pairs-modern-container {
    margin: 25px 0;
}

.pair-category-modern {
    margin-bottom: 35px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--glass-border);
}

.category-icon {
    font-size: 28px;
}

.category-header h4 {
    flex: 1;
    font-size: 18px;
    color: var(--text-primary);
}

.category-count {
    padding: 4px 12px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 12px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.pairs-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.pair-card {
    position: relative;
    display: block;
    cursor: pointer;
    user-select: none;
}

.pair-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.pair-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(10, 14, 39, 0.6);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pair-card input:checked ~ .pair-card-content {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(123, 47, 247, 0.2));
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
}

.pair-card:hover .pair-card-content {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pair-card-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.3), transparent);
    transition: left 0.5s;
}

.pair-card:hover .pair-card-glow {
    left: 100%;
}

.pair-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.pair-badge {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.otc-badge {
    background: linear-gradient(135deg, var(--success), #00cc70);
    color: white;
}

.real-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.pair-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pair-disabled .pair-card-content {
    background: rgba(10, 14, 39, 0.3);
}

/* Analysis Modal */
.analysis-modal {
    max-width: 500px;
    width: 100%;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.analysis-icon {
    font-size: 48px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.analysis-header h3 {
    font-size: 22px;
}

.analysis-progress {
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.progress-percent {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
}

.analysis-messages {
    max-height: 150px;
    overflow-y: auto;
}

.analysis-message {
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(10, 14, 39, 0.6);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.analysis-message.active {
    opacity: 1;
    transform: translateX(0);
}

/* Signal Result */
.signal-result-card {
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 245, 255, 0.2);
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.signal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-animation 2s ease infinite;
    box-shadow: 0 0 10px var(--success);
}

@keyframes pulse-animation {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.signal-timestamp {
    font-size: 12px;
    color: var(--text-secondary);
}

.signal-display-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.signal-pair-display {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
}

.signal-arrow {
    font-size: 42px;
    color: var(--text-secondary);
    animation: slide 1.5s ease infinite;
}

@keyframes slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.signal-type-display {
    font-size: 42px;
    font-weight: bold;
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.signal-call {
    background: linear-gradient(135deg, var(--success), #00cc70);
    color: white;
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

.signal-put {
    background: linear-gradient(135deg, var(--danger), #cc0044);
    color: white;
    box-shadow: 0 8px 30px rgba(255, 0, 85, 0.4);
}

.signal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.signal-meta-item {
    padding: 15px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.meta-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.meta-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
}

.signal-notice-modern {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 12px;
}

.notice-icon {
    font-size: 24px;
}

.notice-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
}

.notice-content strong {
    color: var(--warning);
}

/* Signals List */
.signals-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signal-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.signal-item-modern:hover {
    background: rgba(0, 245, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(5px);
}

.signal-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.signal-item-pair {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.signal-item-type {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}

.signal-item-right {
    text-align: right;
}

.signal-item-trade-time {
    margin-bottom: 4px;
}

.signal-item-trade-time .label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-right: 6px;
}

.signal-item-trade-time .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.signal-item-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 13px;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.telegram-modal {
    text-align: center;
}

.telegram-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.telegram-icon {
    font-size: 64px;
}

.telegram-modal h3 {
    font-size: 24px;
}

.telegram-modal p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.telegram-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
    text-align: left;
}

.tg-feature {
    padding: 12px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    font-size: 14px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: var(--success);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3);
}

.notification.error {
    border-color: var(--danger);
    box-shadow: 0 8px 32px rgba(255, 0, 85, 0.3);
}

/* Tables and other components from profile.php and admin.php */
.table-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(10, 14, 39, 0.6);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(0, 245, 255, 0.05);
}

.signal-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

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

/* Profile */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.profile-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.profile-value {
    color: var(--text-primary);
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 245, 255, 0.3);
}

.stat-card-value {
    font-size: 42px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-card-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin */
.admin-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-controls .form-control {
    flex: 1;
    min-width: 250px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.modal-actions button {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--glass-border);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .user-info-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-stats-grid {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        width: 100%;
    }

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

    .signal-display-modern {
        flex-direction: column;
        padding: 30px 20px;
    }

    .signal-arrow {
        transform: rotate(90deg);
    }

    .signal-item-modern {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .signal-item-left,
    .signal-item-right {
        width: 100%;
    }

    .signal-item-right {
        text-align: center;
    }

    .profile-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

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

    .upgrade-links {
        flex-direction: column;
    }

    .upgrade-links .btn {
        width: 100%;
    }

    .market-status-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    .notification {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .glass-card {
        padding: 20px;
    }

    .logo-text {
        font-size: 32px;
    }

    .signal-pair-display {
        font-size: 28px;
    }

    .signal-type-display {
        font-size: 32px;
        padding: 15px 30px;
    }

    .stat-card-value {
        font-size: 32px;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .category-header h4 {
        font-size: 16px;
    }
}

/* Additional Styles for Profile, Admin, and Enhanced Components */

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-spinner::before {
    content: '⚡';
    font-size: 24px;
    animation: spin 1s linear infinite;
}

/* Table Enhancements */
.table-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pair-badge-small {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.table-time,
.table-datetime {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.time-icon,
.datetime-icon {
    font-size: 14px;
}

/* Stat Card Icons */
.stat-card-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

/* Pagination Container */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-dots {
    color: var(--text-secondary);
    padding: 0 8px;
}

/* Form Hints */
.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Admin Header Card */
.admin-header-card {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(123, 47, 247, 0.05));
    border-color: rgba(0, 245, 255, 0.2);
}

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

.admin-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    margin-bottom: 8px;
}

.admin-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User Row */
.user-row {
    transition: all 0.3s ease;
}

.user-row:hover {
    background: rgba(0, 245, 255, 0.05);
    transform: translateX(5px);
}

/* User Info Cell */
.user-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 245, 255, 0.3);
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-email {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Limit Badge */
.limit-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 6px;
}

.action-buttons .btn {
    padding: 6px 12px;
    font-size: 14px;
}

/* Modal Header */
.modal-header {
    margin-bottom: 25px;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
}

/* Alert Boxes */
.alert {
    display: flex;
    gap: 15px;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-icon {
    font-size: 24px;
}

.alert strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.alert p {
    font-size: 14px;
    margin: 0;
}

.alert code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 0, 85, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* Stat Card Variations */
.stat-card-users::before {
    background: linear-gradient(90deg, #00f5ff, #7b2ff7);
}

.stat-card-free::before {
    background: linear-gradient(90deg, #6b7280, #4b5563);
}

.stat-card-vip::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stat-card-signals::before {
    background: linear-gradient(90deg, #00ff88, #00cc70);
}

/* Profile Label Icons */
.profile-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-info-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .action-buttons {
        width: 100%;
        justify-content: center;
    }

    .table-time,
    .table-datetime {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .admin-header h2 {
        font-size: 22px;
    }

    .stat-card-icon {
        font-size: 28px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
}