/* BIWARI - Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --secondary: #581c87;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #eab308;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-light);
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #ea580c);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: bold;
    font-size: 20px;
}

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

.nav a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ea580c);
    color: var(--dark);
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--white);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 50%, var(--dark) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 20px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero .btn {
    padding: 15px 30px;
    font-size: 16px;
}

/* Features */
.features {
    padding: 60px 0;
    background: rgba(0,0,0,0.1);
}

.features h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 30px;
    color: var(--white);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-icon.amber { background: rgba(245, 158, 11, 0.2); color: var(--primary); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.feature-icon.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    opacity: 0.7;
    font-size: 14px;
}

/* Cryptos */
.cryptos {
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cryptos h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.cryptos > .container > p {
    opacity: 0.6;
    margin-bottom: 40px;
}

.crypto-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
}

.crypto-symbol {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
}

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

.footer .logo {
    font-size: 18px;
}

.footer p {
    opacity: 0.4;
    font-size: 14px;
}

/* Auth Forms */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 50%, var(--dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 28px;
    font-weight: bold;
}

.auth-logo .logo-img {
    width: 50px;
    height: 50px;
}

.auth-box h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 30px;
    font-size: 24px;
}

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

.form-group label {
    display: block;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 14px;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-box .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255,255,255,0.6);
}

.auth-footer a {
    color: var(--primary);
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: var(--dark);
}

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

.sidebar-logout {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.sidebar-logout button {
    width: 100%;
    background: transparent;
    border: none;
    color: #f87171;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
}

.sidebar-logout button:hover {
    background: rgba(255,255,255,0.1);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 5px;
}

.page-header p {
    color: var(--gray);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card .info h3 {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
}

.stat-card .info p {
    font-size: 28px;
    font-weight: bold;
    color: #1e293b;
}

.stat-card .info span {
    font-size: 14px;
}

.stat-card .info .positive { color: var(--success); }
.stat-card .info .negative { color: var(--danger); }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.amber { background: #fef3c7; color: #f59e0b; }
.stat-icon.green { background: #dcfce7; color: #22c55e; }
.stat-icon.blue { background: #dbeafe; color: #3b82f6; }
.stat-icon.purple { background: #f3e8ff; color: #a855f7; }

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

.card-header h2 {
    font-size: 18px;
    color: #1e293b;
}

.card-header a {
    color: var(--primary);
    font-size: 14px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 12px;
    color: var(--gray);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f1f5f9;
}

table tr:hover {
    background: #f8fafc;
}

/* Wallet Cards */
.wallets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wallet-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.wallet-card-header .crypto-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-card-header .crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fef3c7;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.wallet-card-header .crypto-name {
    font-weight: 600;
    color: #1e293b;
}

.wallet-card-header .crypto-symbol {
    font-size: 14px;
    color: var(--gray);
}

.wallet-card-header .wallet-type {
    font-size: 12px;
    padding: 4px 10px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
}

.wallet-card .balance {
    margin-bottom: 15px;
}

.wallet-card .balance-amount {
    font-size: 28px;
    font-weight: bold;
    color: #1e293b;
}

.wallet-card .balance-usd {
    color: var(--gray);
    font-size: 14px;
}

.wallet-card .address {
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 12px;
    color: #64748b;
    word-break: break-all;
}

.wallet-card .actions {
    display: flex;
    gap: 10px;
}

.wallet-card .actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
}

.quick-action:hover {
    border-color: var(--primary);
    background: #fffbeb;
}

.quick-action i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.quick-action span {
    font-size: 14px;
    color: #475569;
}

/* Crypto Grid */
.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.crypto-grid-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

/* Transaction List */
.transaction-list {
    list-style: none;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-icon.in {
    background: #dcfce7;
    color: #22c55e;
}

.transaction-icon.out {
    background: #fee2e2;
    color: #ef4444;
}

.transaction-details h4 {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.transaction-details p {
    font-size: 12px;
    color: var(--gray);
}

.transaction-amount {
    text-align: right;
}

.transaction-amount .amount {
    font-weight: 600;
    margin-bottom: 2px;
}

.transaction-amount .amount.in { color: #22c55e; }
.transaction-amount .amount.out { color: #ef4444; }

.transaction-amount .status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 20px;
}

.transaction-amount .status.completed {
    background: #dcfce7;
    color: #16a34a;
}

.transaction-amount .status.pending {
    background: #fef9c3;
    color: #ca8a04;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-layout {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}
