/**
 * TempMail Pro - Cyberpunk & Modern Design System
 */

:root {
    --bg-primary: #0a0d14;
    --bg-secondary: #111726;
    --bg-card: #161f33;
    --bg-card-hover: #1c2740;
    --bg-input: #0d121f;
    --border-color: #232f48;
    --border-focus: #3b82f6;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.25);
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-amber: #f59e0b;
    --accent-rose: #ef4444;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.15);

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #f1f5f9;
    --bg-card-hover: #e2e8f0;
    --bg-input: #ffffff;
    --border-color: #cbd5e1;
    --border-focus: #2563eb;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-emerald: #059669;
    --accent-emerald-glow: rgba(5, 150, 105, 0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ================= HEADER ================= */
.app-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 26px;
    height: 26px;
    color: var(--accent-emerald);
}

.accent-text {
    color: var(--accent-emerald);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-emerald);
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse 2s infinite;
}

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

.nav-tabs {
    display: flex;
    gap: 0.5rem;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-tab svg {
    width: 18px;
    height: 18px;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-tab.active {
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.nav-tab .badge {
    background: var(--accent-emerald);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-focus);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

/* ================= MAIN CONTAINER ================= */
.main-content {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    flex: 1;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ================= ADDRESS HERO CARD ================= */
.address-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.label-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
}

.retention-info {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.countdown-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.countdown-bar {
    width: 70px;
    height: 5px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.countdown-progress {
    height: 100%;
    width: 100%;
    background: var(--accent-emerald);
    transition: width 1s linear;
}

.countdown-text {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.address-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.5rem 0.4rem 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.address-input-wrapper:focus-within {
    border-color: var(--accent-emerald);
    box-shadow: 0 0 12px var(--accent-emerald-glow);
}

.input-icon-box svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    display: block;
    margin-right: 0.75rem;
}

.email-display {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    outline: none;
}

.address-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.token-short {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-decoration: none;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--accent-emerald);
    color: #041a11;
    font-weight: 700;
}

.btn-primary:hover {
    background: #0ea372;
    box-shadow: 0 0 14px var(--accent-emerald-glow);
}

.btn-secondary {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.btn-icon {
    padding: 0.6rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--text-primary);
    border-color: var(--border-focus);
}

.btn-danger:hover {
    color: var(--accent-rose);
    border-color: var(--accent-rose);
    background: rgba(239, 68, 68, 0.1);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* ================= INBOX WORKSPACE ================= */
.inbox-workspace {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 1.5rem;
    min-height: 580px;
}

.inbox-panel, .reader-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inbox-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.75rem;
    gap: 0.5rem;
}

.search-box svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.88rem;
    width: 100%;
}

.message-list {
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
}

/* Message Item Card */
.msg-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.msg-item:hover {
    background: var(--bg-card);
}

.msg-item.active {
    background: var(--bg-card);
    border-left: 3px solid var(--accent-emerald);
}

.msg-item.unread .msg-subject {
    font-weight: 700;
    color: #ffffff;
}

.msg-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.msg-sender {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.msg-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.msg-subject {
    font-size: 0.88rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msg-snippet {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.msg-tags {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

.tag-otp {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 700;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
}

.tag-attach {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Empty Inbox State */
.empty-inbox, .reader-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-inbox h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.1rem;
}

.empty-inbox p, .reader-empty p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 320px;
}

.empty-inbox code {
    font-family: var(--font-mono);
    color: var(--accent-emerald);
    word-break: break-all;
}

/* Radar Animation */
.radar-spinner {
    width: 72px;
    height: 72px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-spinner svg {
    width: 28px;
    height: 28px;
    color: var(--accent-emerald);
    z-index: 2;
}

.radar-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-emerald);
    opacity: 0;
    animation: radar-ripple 2.4s cubic-bezier(0.1, 0.2, 0.7, 1) infinite;
}

.radar-circle.circle-2 { animation-delay: 0.8s; }
.radar-circle.circle-3 { animation-delay: 1.6s; }

@keyframes radar-ripple {
    0% { transform: scale(0.3); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ================= MESSAGE READER ================= */
.reader-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.reader-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.email-subject {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.email-details-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sender-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
    color: #000;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sender-info {
    font-size: 0.85rem;
}

.sender-name-line strong {
    color: var(--text-primary);
}

.sender-address {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.recipient-line {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.reader-actions {
    display: flex;
    gap: 0.4rem;
}

/* Smart OTP Box */
.otp-box {
    margin: 1rem 1.25rem 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.otp-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
}

.otp-label svg {
    width: 16px;
    height: 16px;
}

.otp-value-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.otp-code {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.1em;
}

/* Attachments */
.attachments-box {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.attachments-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attachment-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.attachment-pill:hover {
    border-color: var(--accent-emerald);
}

/* Body Switcher */
.body-tabs {
    display: flex;
    padding: 0.5rem 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
}

.body-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
}

.body-tab.active {
    color: var(--accent-emerald);
    border-bottom-color: var(--accent-emerald);
}

.body-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 350px;
}

.body-view {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 1.25rem;
}

.body-view.active {
    display: block;
}

#htmlIframe {
    width: 100%;
    height: 480px;
    border: none;
    background: #ffffff;
    border-radius: var(--radius-md);
}

#textBody, #rawHeaders {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-secondary);
}

/* ================= CARDS & DOCS ================= */
.card-wide {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

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

.card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.section-lead {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.api-endpoints-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.api-endpoint-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.method {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
}

.method.get { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.method.post { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.endpoint-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.code-block {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow-x: auto;
}

.code-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

/* ================= STATS & SETTINGS ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-title {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.settings-group {
    margin-bottom: 2rem;
}

.settings-group h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 34px;
    transition: var(--transition);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

input:checked + .slider {
    background-color: var(--accent-emerald);
    border-color: var(--accent-emerald);
}

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: #000;
}

.token-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.token-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

/* ================= MODALS ================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.modal-sm { max-width: 360px; }

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.input-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-inline input, .form-group input, .domain-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
}

.input-inline input { flex: 1; }

.input-copy-group {
    display: flex;
    gap: 0.5rem;
}
.input-copy-group input { flex: 1; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.modal-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.25rem 0;
}

.qrcode-wrapper {
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: 1rem;
}

.qr-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ================= TOAST ================= */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 200;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--accent-emerald);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: toast-in 0.25s ease-out;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
    .inbox-workspace {
        grid-template-columns: 1fr;
    }
    .api-endpoints-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
}
