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

:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-card: #2a2a2a;
    --border-color: #3a3a3a;

    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent-cyan: #00D9FF;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;

    --shadow-glow: 0 0 30px rgba(0, 217, 255, 0.3);
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a3a3a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.screen {
    min-height: 100vh;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Home Screen */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.logo-circle {
    width: 242px;
    height: 242px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

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

.app-title {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--accent-cyan), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 60px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 80px;
    border: 2px solid;
}

.status-badge.waiting {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1.5px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:active {
    transform: scale(0.95);
}

.hint-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 20px;
}

.version-info {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Confirmation Screen */
.confirmation-container {
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

.label {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Header Card */
.header-card {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 217, 255, 0.3);
}

.symbol-title {
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.symbol-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

/* Price Card */
.price-card {
    text-align: center;
}

.current-price {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
}

.price-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
    margin: 5px 0 10px 0;
}

.price-change.positive {
    color: var(--accent-green);
}

.price-change.negative {
    color: var(--accent-red);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--accent-green);
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: var(--accent-green);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
}

/* Signal Grid */
.signal-grid, .calc-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

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

.row-value {
    font-size: 14px;
    color: var(--text-primary);
}

.row-value.direction {
    font-weight: bold;
}

.row-value.profit {
    color: var(--accent-green);
}

.row-value.loss {
    color: var(--accent-red);
}

.row-value.warning {
    color: var(--accent-orange);
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.badge-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.badge {
    flex: 1;
    text-align: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid;
}

.badge.blue {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.badge.purple {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.badge.orange {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.regime-text {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 10px;
}

/* Timer Card */
.timer-card {
    text-align: center;
    border-width: 2px;
    transition: all 0.3s ease;
}

.timer-card.warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--accent-orange);
}

.timer-card.danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--accent-red);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.timer-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: bold;
}

.timer-value {
    font-size: 64px;
    font-weight: bold;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-action .btn-icon {
    font-size: 28px;
}

.btn-confirm {
    background: var(--accent-green);
    color: white;
}

.btn-reject {
    background: var(--accent-red);
    color: white;
}

.btn-action:active {
    transform: scale(0.95);
}

.btn-action:disabled {
    background: #4a5568;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        bottom: -50px;
        opacity: 0;
    }
    to {
        bottom: 20px;
        opacity: 1;
    }
}

.toast.success {
    background: var(--accent-green);
}

.toast.error {
    background: var(--accent-red);
}

/* iPad Landscape - Two Column Layout */
@media (min-width: 768px) and (orientation: landscape) {
    .confirmation-container {
        display: grid;
        grid-template-columns: 2fr 3fr;
        grid-template-rows: auto auto 1fr auto;
        gap: 20px;
        max-width: 100%;
        padding: 30px;
    }

    .header-card {
        grid-column: 1 / 2;
        grid-row: 1;
    }

    .price-card {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .timer-card {
        grid-column: 1 / 2;
        grid-row: 3;
        align-self: center;
    }

    .action-buttons {
        grid-column: 1 / 2;
        grid-row: 4;
        margin-top: 0;
    }

    .signal-card {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }

    .calc-card {
        grid-column: 2 / 3;
        grid-row: 3 / 5;
    }

    .symbol-title {
        font-size: 56px;
    }

    .current-price {
        font-size: 64px;
    }

    .timer-value {
        font-size: 80px;
    }

    .label {
        font-size: 14px;
    }

    .row-label,
    .row-value {
        font-size: 16px;
    }
}

/* iPad Portrait - Larger Spacing */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .confirmation-container {
        max-width: 700px;
        padding: 30px;
    }

    .symbol-title {
        font-size: 56px;
    }

    .current-price {
        font-size: 56px;
    }

    .timer-value {
        font-size: 72px;
    }

    .card {
        padding: 25px;
    }

    .btn-action {
        padding: 22px;
        font-size: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .app-title {
        font-size: 36px;
    }

    .current-price {
        font-size: 40px;
    }

    .timer-value {
        font-size: 56px;
    }

    .btn-action {
        padding: 16px;
        font-size: 16px;
    }
}
