/* ══════════════════════════════════════════════════════════
   TRCüzdan Dashboard — Design System
   Premium Dark Theme with Glassmorphism
   ══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ────────────────────────────── */
:root {
    /* Background Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --bg-glass: rgba(17, 24, 39, 0.6);
    --bg-surface: #1e293b;
    --bg-input: #0f172a;
    --bg-sidebar: #0d1117;
    --bg-topbar: rgba(13, 17, 23, 0.85);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #38bdf8;
    --text-heading: #e2e8f0;

    /* Accent / Brand Colors */
    --accent-primary: #6366f1;
    --accent-primary-rgb: 99, 102, 241;
    --accent-secondary: #8b5cf6;
    --accent-success: #22c55e;
    --accent-success-rgb: 34, 197, 94;
    --accent-warning: #f59e0b;
    --accent-warning-rgb: 245, 158, 11;
    --accent-danger: #ef4444;
    --accent-danger-rgb: 239, 68, 68;
    --accent-info: #38bdf8;
    --accent-info-rgb: 56, 189, 248;
    --accent-crypto: #f7931a;
    --accent-bank: #0ea5e9;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-success: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-crypto: linear-gradient(135deg, #f7931a 0%, #f59e0b 100%);
    --gradient-bank: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);

    /* Borders */
    --border-color: rgba(148, 163, 184, 0.1);
    --border-active: rgba(99, 102, 241, 0.5);
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --border-radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
    --shadow-glow-success: 0 0 20px rgba(34, 197, 94, 0.2);

    /* Sizing */
    --sidebar-width: 260px;
    --sidebar-collapsed: 0px;
    --topbar-height: 64px;
    --content-max: 1400px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

    /* Extra Backgrounds */
    --bg-darker: #080c14;
}

/* ─── Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: var(--gradient-glow);
    background-attachment: fixed;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-primary);
}

img {
    max-width: 100%;
    display: block;
}

/* ─── App Layout ───────────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-base);
}

.page-content {
    flex: 1;
    padding: 24px;
    max-width: var(--content-max);
    width: 100%;
    margin: 0 auto;
}

/* ─── Sidebar ──────────────────────────────────────────── */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition-base);
    overflow: hidden;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.logo-name .accent {
    color: var(--accent-primary);
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.93rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-item .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
    transition: height var(--transition-fast);
}

.nav-item .nav-link:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.nav-item.active .nav-link {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
}

.nav-item.active .nav-link::before {
    height: 60%;
}

.nav-item .nav-link i {
    font-size: 1.2rem;
    width: 22px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--accent-success);
}

.version-info {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}

/* ─── Top Bar ──────────────────────────────────────────── */
.top-bar {
    height: var(--topbar-height);
    background: var(--bg-topbar);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
}

.top-bar-title h1 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-heading);
}

.top-bar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--accent-success);
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.current-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* ─── Cards ────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    pointer-events: none;
}

.card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--accent-primary);
}

/* ─── Stat Cards ───────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-gradient, var(--gradient-primary));
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-active);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--stat-bg, rgba(99, 102, 241, 0.15));
    color: var(--stat-color, var(--accent-primary));
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.stat-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.stat-card.crypto {
    --stat-gradient: var(--gradient-crypto);
    --stat-bg: rgba(247, 147, 26, 0.15);
    --stat-color: var(--accent-crypto);
}

.stat-card.bank {
    --stat-gradient: var(--gradient-bank);
    --stat-bg: rgba(14, 165, 233, 0.15);
    --stat-color: var(--accent-bank);
}

.stat-card.success {
    --stat-gradient: var(--gradient-success);
    --stat-bg: rgba(34, 197, 94, 0.15);
    --stat-color: var(--accent-success);
}

.stat-card.danger {
    --stat-gradient: var(--gradient-danger);
    --stat-bg: rgba(239, 68, 68, 0.15);
    --stat-color: var(--accent-danger);
}

/* ─── Content Grid ────────────────────────────────────── */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.content-grid.full {
    grid-template-columns: 1fr;
}

/* ─── Product Cards ───────────────────────────────────── */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-active);
}

.product-card.selected {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.product-card.selected::after {
    content: '\F272';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.product-icon.crypto {
    background: rgba(247, 147, 26, 0.15);
    color: var(--accent-crypto);
}

.product-icon.bank {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-bank);
}

.product-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.product-title {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    font-weight: 500;
}

/* ─── Crypto Rate Cards ──────────────────────────────── */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.rate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
    transition: all var(--transition-fast);
}

.rate-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
}

.rate-symbol {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-crypto);
    margin-bottom: 6px;
}

.rate-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.rate-currency {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ─── Coin Select Cards ──────────────────────────────── */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.coin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.coin-card:hover {
    border-color: var(--accent-crypto);
    box-shadow: 0 0 15px rgba(247, 147, 26, 0.15);
}

.coin-card.selected {
    border-color: var(--accent-success);
    box-shadow: var(--shadow-glow-success);
}

.coin-name {
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.coin-network {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.coin-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-crypto);
}

.coin-rate {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.coin-available {
    font-size: 0.7rem;
    color: var(--accent-success);
    margin-top: 6px;
}

/* ─── Tables ───────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th {
    background: var(--bg-surface);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ─── Forms ────────────────────────────────────────────── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--accent-danger);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.92rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input.error {
    border-color: var(--accent-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    font-size: 0.78rem;
    color: var(--accent-danger);
    margin-top: 4px;
}

.form-help {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::after {
    opacity: 0.05;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled::after {
    display: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.06);
}

.btn-crypto {
    background: var(--gradient-crypto);
    color: white;
}

.btn-bank {
    background: var(--gradient-bank);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 8px;
}

/* ─── Badges ───────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}

.badge-waiting {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-info);
}

.badge-paid {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.badge-approved {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-success);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.badge-expired {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
}

.badge-cancelled {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
}

.badge-crypto {
    background: rgba(247, 147, 26, 0.15);
    color: var(--accent-crypto);
}

.badge-bank {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-bank);
}

/* ─── Alerts ───────────────────────────────────────────── */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    border: 1px solid;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-info {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
    color: var(--accent-info);
}

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
    color: var(--accent-success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
    color: var(--accent-warning);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
}

/* ─── Payment Info Box ─────────────────────────────────── */
.payment-info {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    text-align: center;
    margin: 20px 0;
}

.payment-info .qr-wrapper {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.payment-info .qr-wrapper img {
    width: 200px;
    height: 200px;
}

.payment-address {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    margin: 12px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.payment-address code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    color: var(--accent-info);
    word-break: break-all;
    text-align: left;
}

.payment-address .copy-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.payment-address .copy-btn:hover {
    color: var(--accent-primary);
}

.payment-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-crypto);
    margin: 10px 0;
    font-variant-numeric: tabular-nums;
}

.payment-amount-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ─── Timer / Countdown ───────────────────────────────── */
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--border-radius-full);
    color: var(--accent-warning);
    font-weight: 600;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.countdown.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
    animation: countdown-blink 1s ease-in-out infinite;
}

@keyframes countdown-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ─── IBAN Display ─────────────────────────────────────── */
.iban-display {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 16px 0;
}

.iban-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.iban-row:last-child {
    border-bottom: none;
}

.iban-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.iban-value {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.iban-value .copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.iban-value .copy-btn:hover {
    color: var(--accent-primary);
}

/* ─── Status Result ───────────────────────────────────── */
.status-result {
    text-align: center;
    padding: 40px 20px;
}

.status-result .status-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.status-result.success .status-icon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-success);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

.status-result.failed .status-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-danger);
}

.status-result.expired .status-icon {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
}

.status-result h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.status-result p {
    color: var(--text-secondary);
}

/* ─── Modal ────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ─── Tabs ─────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    padding: 4px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.06);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Toast Notifications ──────────────────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 420px;
    padding: 14px 20px;
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    pointer-events: auto;
    animation: slideInRight 0.3s ease;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast.success::before {
    background: var(--accent-success);
}

.toast.error::before {
    background: var(--accent-danger);
}

.toast.warning::before {
    background: var(--accent-warning);
}

.toast.info::before {
    background: var(--accent-info);
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: var(--accent-success);
}

.toast.error i {
    color: var(--accent-danger);
}

.toast.warning i {
    color: var(--accent-warning);
}

.toast.info i {
    color: var(--accent-info);
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 2px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ─── Loading / Skeleton ──────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, rgba(148, 163, 184, 0.08) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-card {
    height: 120px;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

/* ─── Steps Indicator ──────────────────────────────────── */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    position: relative;
}

.step::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin-left: 8px;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.step.active .step-number {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.step.completed .step-number {
    background: var(--accent-success);
    border-color: var(--accent-success);
    color: white;
}

.step-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--accent-primary);
}

.step.completed .step-label {
    color: var(--accent-success);
}

/* ─── Empty State ──────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.88rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ─── Section Header ──────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--accent-primary);
}

/* ─── Filter Bar ──────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar .form-input,
.filter-bar .form-select {
    max-width: 200px;
}

/* ─── Utility Classes ──────────────────────────────────── */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent-primary);
}

.text-success {
    color: var(--accent-success);
}

.text-danger {
    color: var(--accent-danger);
}

.text-warning {
    color: var(--accent-warning);
}

.text-crypto {
    color: var(--accent-crypto);
}

.text-bank {
    color: var(--accent-bank);
}

.font-mono {
    font-family: 'Courier New', monospace;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.gap-8 {
    gap: 8px;
}

.gap-16 {
    gap: 16px;
}

.d-flex {
    display: flex;
}

.d-none {
    display: none;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .page-content {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
    }

    .steps {
        flex-direction: column;
        gap: 8px;
    }

    .step::after {
        display: none;
    }

    .product-cards {
        grid-template-columns: 1fr;
    }

    .coin-grid {
        grid-template-columns: 1fr;
    }

    .top-bar-title h1 {
        font-size: 0.95rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar .form-input,
    .filter-bar .form-select {
        max-width: 100%;
    }
}

/* ─── Steps Wizard ─────────────────────────────────────── */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(12px);
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 0 24px;
    opacity: 0.5;
    transition: all var(--transition-base);
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 0.9;
}

.step::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--border-color);
    transform: translateY(-50%);
}

.step:last-child::after {
    display: none;
}

.step.completed::after {
    background: var(--accent-success);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.step.completed .step-number {
    background: var(--accent-success);
    color: white;
    border-color: var(--accent-success);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.step.active .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--accent-success);
}

/* ─── Payment Info (Coin Selection Result) ─────────────── */
.payment-info {
    text-align: center;
    padding: 24px 16px;
}

.qr-wrapper {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.qr-wrapper img {
    width: 200px;
    height: 200px;
    display: block;
}

.payment-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-crypto);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.payment-amount-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.payment-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-surface);
    padding: 14px 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    max-width: 520px;
    margin: 0 auto;
}

.payment-address code {
    font-size: 0.85rem;
    word-break: break-all;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.copy-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
    padding: 8px 10px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.05);
}

/* ─── IBAN Display ─────────────────────────────────────── */
.iban-display {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.iban-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.iban-row:last-child {
    border-bottom: none;
}

.iban-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.iban-value {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.iban-value code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

/* ─── Countdown Timer ──────────────────────────────────── */
.countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-warning);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

.countdown i {
    font-size: 0.9rem;
}

.countdown.danger,
.countdown .danger {
    color: var(--accent-danger);
    animation: pulse 1s ease-in-out infinite;
}

/* ─── Status Result (Final Step) ───────────────────────── */
.status-result {
    text-align: center;
    padding: 48px 24px;
}

.status-result .status-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.status-result.success .status-icon {
    color: var(--accent-success);
}

.status-result.failed .status-icon {
    color: var(--accent-danger);
}

.status-result.expired .status-icon {
    color: var(--text-muted);
}

.status-result h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.status-result p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* ─── Section Header ───────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--accent-primary);
}

/* ─── Filter Bar ───────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar .form-input,
.filter-bar .form-select {
    max-width: 220px;
    margin-bottom: 0;
}

/* ─── Rate Header (rates page) ─────────────────────────── */
.rate-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rate-name {
    line-height: 1.2;
}

.rate-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─── Utility Classes ──────────────────────────────────── */
.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-24 {
    margin-bottom: 24px;
}

.gap-8 {
    gap: 8px;
}

.gap-16 {
    gap: 16px;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.text-muted {
    color: var(--text-muted);
}

.text-crypto {
    color: var(--accent-crypto);
}

.font-mono {
    font-family: var(--font-mono);
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

@media (max-width: 480px) {
    .rates-grid {
        grid-template-columns: 1fr 1fr;
    }

    .payment-amount {
        font-size: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-result {
        padding: 32px 16px;
    }

    .status-result .status-icon {
        font-size: 3rem;
    }
}