:root {
    --bg: #0b0f0d;
    --panel: #0f1512;
    --panel-border: #1e2a24;
    --green: #22c55e;
    --green-dark: #14532d;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --button: #16a34a;
    --button-hover: #15803d;
}

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

body {
    margin: 0;
    background: radial-gradient(ellipse at top, #0f1a14 0%, var(--bg) 60%);
    color: var(--text);
}

.container {
    max-width: 900px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 28px;
}

.header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.header .sub {
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

/* Status */
.status {
    border: 1px solid var(--green-dark);
    background: linear-gradient(180deg, #0f2a1b, #0b1f15);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 18px;
}

.status .live {
    color: var(--green);
    font-weight: 600;
    margin-bottom: 4px;
}

.status .time {
    font-size: 12px;
    color: var(--muted);
}

/* Button */
.actions {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.btn {
    background: var(--button);
    color: #ecfdf5;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2) inset;
}

.btn:hover {
    background: var(--button-hover);
}

/* Screenshot Card */
.card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 22px;
    box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.02);
}

.screenshot {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    background:
    linear-gradient(135deg, #1f2937, #111827);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
    border: 1px solid #1f2937;
}

/* Order Details */
.details {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 16px;

    table {
        width: 100%;
        font-size: 16px;

        tr {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-top: 1px solid #1f2937;
        }

        tr:first-of-type {
            border-top: none;
        }

        td {
            font-weight: 500;
        }

        td:first-of-type {
            color: var(--muted);
        }
    }
}

.details h2 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
}

.loading {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
    visibility: hidden;
    height: 0;
}

.errors {
  background: linear-gradient(180deg, #2a1414, #1f0b0b);
  border: 1px solid #7f1d1d;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow:
    0 8px 20px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.03);

    color: #fecaca;
    font-size: 13px;
    line-height: 1.4;
}
