* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    /* Koza Gold Mobile App Colors */
    --gold-primary: #b7a179;
    --gold-secondary: #9a8866;
    --gold-accent: #c9b08c;
    --gold-light: #d4bc94;
    --gold-dark: #7d6f54;
    
    /* Background Colors - Light theme */
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --bg-card: #ffffff;
    --bg-overlay: rgba(44, 62, 92, 0.95);
    
    /* Header */
    --header-bg: #2C3E5C;
    --header-text: #ffffff;
    
    /* Text Colors */
    --text-primary: #2C3E5C;
    --text-secondary: #5a6b84;
    --text-muted: #8892a0;
    
    /* Semantic Colors */
    --success: #16a085;
    --success-light: #1abc9c;
    --danger: #e74c3c;
    --danger-light: #c0392b;
    --info: #3498db;
    --warning: #f39c12;
    
    /* Border & Shadow */
    --border: rgba(183, 161, 121, 0.2);
    --border-hover: rgba(183, 161, 121, 0.4);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 4px 12px rgba(183, 161, 121, 0.25);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: var(--text);
    min-height: 100vh;
    padding: 20px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
}
header {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse 2s infinite;
}
.status-dot.connected {
    background: var(--success);
}
.status-dot.disconnected {
    background: var(--danger);
}
.last-update {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow);
}
.price-card {
    cursor: pointer;
    transition: all 0.3s ease;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--shadow);
    border-color: var(--primary);
}
.price-card:active {
    transform: translateY(-2px);
}
.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.price-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}
.change {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}
.change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}
.change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}
.change.neutral {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
}
.price-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.label {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.value {
    font-size: 1.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.value.buy {
    color: var(--success);
}
.value.sell {
    color: var(--danger);
}
.price-chart {
    margin: 12px 0;
    height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}
.mini-chart {
    width: 100%;
    height: 30px;
    color: var(--text-muted);
}
.price-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.price-footer small {
    color: var(--text-muted);
    font-size: 0.75rem;
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
/* Detaylı Modal */
.detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
}
.detail-modal.hidden {
    display: none;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
}
.detail-modal:not(.hidden) .modal-overlay {
    opacity: 1;
}
.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 100%;
    background: var(--bg-light);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    pointer-events: all;
    display: flex;
    flex-direction: column;
}
.detail-modal:not(.hidden) .modal-content {
    transform: translateX(0);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-card);
    color: var(--text);
    font-size: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}
.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}
.modal-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.modal-price-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.modal-price-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.modal-price-item .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.modal-price-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.modal-price-item .value.buy {
    color: var(--success);
}
.modal-price-item .value.sell {
    color: var(--danger);
}
.modal-price-item .value .positive {
    color: var(--success);
}
.modal-price-item .value .negative {
    color: var(--danger);
}
.modal-price-item .value .neutral {
    color: var(--text-muted);
}
.modal-body {
    padding: 30px 40px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-chart {
    width: 100%;
    height: auto;
    min-height: 600px;
    max-width: 100%;
}
.no-chart-data {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px;
    font-size: 1.1rem;
}
/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    header h1 {
        font-size: 2rem;
    }
    .price-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 100%;
        max-width: 100%;
    }
    .modal-header {
        padding: 30px 20px 15px;
    }
    .modal-header h2 {
        font-size: 1.5rem;
    }
    .modal-price-info {
        gap: 15px;
    }
    .modal-price-item .value {
        font-size: 1.2rem;
    }
    .modal-body {
        padding: 20px;
    }
    .detail-chart {
        min-height: 400px;
        max-height: 500px;
    }
}
/* Hide price footer */
.price-footer { display: none !important; }
/* Logo Styles */
.logo-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    z-index: 1;
}
.header-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 12px rgba(183, 161, 121, 0.3));
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
/* Mobile App Style Overrides */
header {
    background: #2C3E5C !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
header h1 {
    color: #ffffff !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
}
header .status {
    color: #ffffff !important;
}
header .status-dot.online {
    background: #16a085 !important;
}
.price-card {
    background: #ffffff !important;
    border: 1px solid rgba(183, 161, 121, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
.price-card:hover {
    box-shadow: 0 4px 16px rgba(183, 161, 121, 0.3) !important;
    transform: translateY(-4px);
}
.badge {
    background: rgba(183, 161, 121, 0.15) !important;
    color: #16a085 !important;
}
.label {
    color: #8892a0 !important;
}
.value.buy {
    color: #16a085 !important;
}
.value.sell {
    color: #e74c3c !important;
}
/* Light Theme like Mobile App */
body {
    background: #f5f5f5;
}
.container {
    background: transparent !important;
}
.price-grid {
    background: transparent !important;
}
.price-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
}
.price-card h3 {
    color: #2C3E5C !important;
}
.mini-chart {
    opacity: 1 !important;
}

/* Warmer background like mobile app */
body {
    background: linear-gradient(135deg, #f9f6f1 0%, #faf7f2 100%) !important;
}

/* Background based on brand color #b7a179 */
body {
    background: linear-gradient(135deg, #f5f0e8 0%, #f2ebe1 50%, #f5f0e8 100%) !important;
}

.container {
    background: transparent !important;
}
