* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #020617, #020617);
    color: #e5e7eb;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* APP WRAPPER */
.app {
    max-width: 420px;
    margin: 0 auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* HEADER */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
}

.logo {
    font-size: 20px;
}

.title {
    font-size: 18px;
    font-weight: 600;
}

/* CARDS */
.card {
    background: #020617;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}

/* CHART */
#chart {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    background: #020617;
}

.chart-card {
    padding-bottom: 6px;
}

/* PRICE */
.price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding: 6px 8px;
    background: #020617;
    border-radius: 8px;
    font-size: 15px;
}

.price-label {
    color: #9ca3af;
}

.price-value {
    font-weight: 600;
}

/* CONTROLS */
.controls {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.controls input,
.controls select {
    flex: 1;
    height: 42px;
    border-radius: 10px;
    border: none;
    padding: 0 12px;
    font-size: 16px;
    background: #020617;
    color: #e5e7eb;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* BUTTONS */
.buttons {
    display: flex;
    gap: 8px;
}

button {
    flex: 1;
    height: 46px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.buy {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.sell {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

/* STATUS */
.status {
    text-align: center;
    font-size: 14px;
    min-height: 42px;
}

#timer {
    color: #facc15;
    margin-bottom: 4px;
}

#tradeResult {
    font-weight: 600;
}

#status {
    opacity: 0.8;
}
