:root {
    --bg: #030712;
    --bg-soft: #06111f;
    --panel: rgba(8, 19, 35, 0.92);
    --panel-strong: rgba(10, 25, 47, 0.96);
    --panel-soft: rgba(15, 32, 55, 0.72);
    --line: rgba(124, 242, 255, 0.14);
    --line-strong: rgba(124, 242, 255, 0.28);
    --text: #eafcff;
    --muted: #89a9b8;
    --dim: #5f7f91;
    --accent: #36e7ff;
    --accent-2: #7c3aed;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #fb7185;
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
    --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Share Tech Mono', monospace !important;
}

html {
    min-height: 100%;
    background: var(--bg);
    color-scheme: dark;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(54, 231, 255, 0.16), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.18), transparent 32rem),
        linear-gradient(180deg, #030712 0%, #06111f 48%, #030712 100%);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

button,
a {
    color: inherit;
}

button {
    border: 0;
}

svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.background-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(54, 231, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54, 231, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 84%);
    z-index: -3;
}

.background-orb {
    position: fixed;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.28;
    pointer-events: none;
    z-index: -2;
}

.orb-a {
    top: 7vh;
    right: -90px;
    background: var(--accent);
}

.orb-b {
    bottom: 8vh;
    left: -110px;
    background: var(--accent-2);
}

.app-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 18px;
}

.panel {
    position: relative;
    background: linear-gradient(180deg, var(--panel), rgba(5, 13, 25, 0.94));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(54, 231, 255, 0.14), transparent 34%, rgba(124, 58, 237, 0.10));
    opacity: 0.72;
}

.panel > * {
    position: relative;
    z-index: 1;
}

.soft-glow {
    box-shadow: 0 0 0 1px rgba(54, 231, 255, 0.05), 0 24px 90px rgba(0, 0, 0, 0.5);
}

.topbar {
    min-height: 74px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: rgba(54, 231, 255, 0.08);
    border: 1px solid rgba(54, 231, 255, 0.26);
}

.brand-mark svg {
    width: 30px;
    height: 30px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.eyebrow,
.terminal-line {
    display: inline-block;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-copy strong {
    font-size: 18px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 15px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
    text-decoration: none;
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: rgba(54, 231, 255, 0.08);
}

.icon-btn:active,
.btn:active,
.tool-card:active,
.filter-tab:active,
.text-btn:active {
    transform: scale(0.96);
}

.icon-btn.primary {
    color: #001016;
    background: linear-gradient(135deg, var(--accent), #9ff8ff);
    border-color: rgba(159, 248, 255, 0.5);
}

.icon-btn.ghost {
    color: var(--accent);
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
    gap: 16px;
}

.main-span {
    grid-column: 1 / -1;
}

.hero {
    padding: 24px;
    min-height: 310px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 20px;
    align-items: center;
}

.hero-content h1 {
    margin-top: 10px;
    max-width: 730px;
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.08em;
}

.hero-content p {
    max-width: 650px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 15px;
}

.hero-meter {
    display: grid;
    justify-items: center;
    gap: 10px;
    color: var(--muted);
    text-align: center;
}

.meter-ring {
    width: 146px;
    height: 146px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 42px;
    background:
        radial-gradient(circle, rgba(54, 231, 255, 0.10) 0 54%, transparent 55%),
        conic-gradient(from 180deg, rgba(54, 231, 255, 0.9), rgba(124, 58, 237, 0.9), rgba(54, 231, 255, 0.9));
    box-shadow: inset 0 0 0 12px rgba(3, 7, 18, 0.88), 0 0 45px rgba(54, 231, 255, 0.18);
}

.feature-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.feature-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
}

.feature-strip svg {
    width: 17px;
    height: 17px;
    color: var(--accent);
}

.generator,
.inbox,
.utility-panel,
.warning-panel {
    padding: 20px;
}

.section-heading,
.inbox-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-heading.compact {
    margin-bottom: 12px;
}

h2 {
    font-size: 22px;
    letter-spacing: -0.04em;
}

h3 {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
    white-space: nowrap;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--dim);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.dot.active {
    background: var(--success);
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.8);
}

.dot.expired {
    background: var(--danger);
    box-shadow: 0 0 14px rgba(251, 113, 133, 0.62);
}

.field-label,
.select-card span,
.status-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.email-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 8px;
}

input,
select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    outline: none;
    color: var(--text);
    background: rgba(0, 0, 0, 0.24);
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

input {
    padding: 0 14px;
    font-size: 15px;
}

input::placeholder {
    color: rgba(137, 169, 184, 0.68);
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(54, 231, 255, 0.08);
}

.hint {
    margin-top: 9px;
    color: var(--dim);
    font-size: 12px;
}

.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.select-card {
    position: relative;
    display: block;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0 42px 0 12px;
    cursor: pointer;
}

.dropdown-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: var(--accent);
    pointer-events: none;
    transition: transform var(--transition);
}

.select-card:focus-within .dropdown-arrow {
    transform: rotate(180deg);
}

.action-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 10px;
    margin-top: 16px;
}

.btn {
    min-height: 46px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), background var(--transition), opacity var(--transition);
    font-size: 13px;
}

.btn.small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), #a7fbff);
    color: #001117;
    border: 1px solid rgba(159, 248, 255, 0.54);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--line);
}

.secondary-btn:hover {
    border-color: var(--line-strong);
    background: rgba(54, 231, 255, 0.07);
}

.status-bar {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.22);
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 12px;
}

.timer,
.active-address {
    display: block;
    color: var(--accent);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.progress-track {
    height: 6px;
    margin-top: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.progress-track span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--success));
    transition: width 500ms linear;
}

.side-stack {
    display: grid;
    gap: 16px;
}

.stat-panel {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-stat {
    min-height: 94px;
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    text-align: center;
}

.mini-stat span {
    color: var(--accent);
    font-size: 29px;
    line-height: 1;
}

.mini-stat small,
.tool-card small,
.toggle-wrap small {
    color: var(--muted);
    font-size: 11px;
}

.otp-panel,
.history-panel {
    padding: 16px;
}

.otp-panel {
    display: grid;
    gap: 12px;
}

.otp-panel strong {
    display: block;
    width: 100%;
    min-height: 56px;
    border-radius: var(--radius-lg);
    padding: 12px;
    color: var(--success);
    font-size: 25px;
    letter-spacing: 0.15em;
    text-align: center;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.text-btn {
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
}

.history-list {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.history-item strong {
    display: block;
    font-size: 12px;
    word-break: break-word;
}

.history-item small,
.muted {
    color: var(--muted);
    font-size: 11px;
}

.history-use {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--accent);
    background: rgba(54, 231, 255, 0.06);
    cursor: pointer;
}

.inbox-top {
    align-items: center;
}

.message-count {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: rgba(54, 231, 255, 0.08);
    border: 1px solid rgba(54, 231, 255, 0.18);
    font-size: 13px;
}

.inbox-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.toggle-wrap input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-ui {
    position: relative;
    width: 38px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.toggle-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--muted);
    transition: transform var(--transition), background var(--transition);
}

.toggle-wrap input:checked + .toggle-ui::after {
    transform: translateX(18px);
    background: var(--accent);
}

.toggle-wrap input:checked + .toggle-ui {
    border-color: rgba(54, 231, 255, 0.5);
    background: rgba(54, 231, 255, 0.14);
}

.refresh-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.refresh-btn:hover {
    border-color: var(--line-strong);
    background: rgba(54, 231, 255, 0.08);
}

.refresh-icon.spinning {
    animation: refreshSpinSmooth 850ms cubic-bezier(0.15, 0.85, 0.25, 1) forwards;
}

.spinning-infinite {
    animation: spinLinear 1s linear infinite;
}

@keyframes refreshSpinSmooth {
    0% { transform: rotate(0deg); }
    60% { transform: rotate(330deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinLinear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.inbox-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 14px;
}

.search-box {
    position: relative;
    display: block;
}

.search-box svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dim);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.search-box input {
    padding-left: 42px;
}

.filter-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    align-self: stretch;
}

.filter-tab {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.filter-tab.active {
    color: #001117;
    background: var(--accent);
}

.loading-bar {
    display: none;
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
}

.loading-bar.active {
    display: block;
}

.loading-bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: loadingSweep 1s ease-in-out infinite;
}

@keyframes loadingSweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(250%); }
}

.inbox-list {
    display: grid;
    gap: 12px;
}

.empty-state {
    min-height: 230px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.025);
    padding: 24px;
}

.empty-state svg {
    width: 56px;
    height: 56px;
    color: var(--dim);
}

.empty-state p {
    color: var(--text);
    font-size: 18px;
}

.email-item {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
    overflow: hidden;
}

.email-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0.55;
}

.email-item:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: rgba(54, 231, 255, 0.055);
}

.email-item-header,
.email-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

.email-from {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.email-item-subject {
    color: var(--text);
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.email-item-preview {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.otp-badge,
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
}

.otp-badge {
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.10);
}

.type-badge {
    color: var(--accent);
    border: 1px solid rgba(54, 231, 255, 0.22);
    background: rgba(54, 231, 255, 0.07);
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.tool-card {
    min-height: 118px;
    padding: 14px;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 8px;
    text-align: left;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.tool-card:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: rgba(54, 231, 255, 0.055);
}

.tool-card svg {
    color: var(--accent);
}

.danger-tool svg,
.danger-tool span {
    color: var(--danger);
}

.warning-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--warning);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(8, 19, 35, 0.94));
}

.warning-panel svg {
    width: 28px;
    height: 28px;
}

.warning-panel p {
    color: #f8d48b;
    font-size: 13px;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 22px 6px 6px;
    color: var(--dim);
    font-size: 12px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: min(760px, 100%);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-strong);
    background: rgba(4, 11, 22, 0.98);
    box-shadow: var(--shadow);
    transform: translateY(12px) scale(0.98);
    transition: transform var(--transition);
    overflow: hidden;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header,
.modal-meta-container,
.modal-body {
    padding: 16px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.modal-meta-container {
    display: grid;
    gap: 12px;
    border-bottom: 1px solid rgba(124, 242, 255, 0.08);
}

.email-meta {
    display: grid;
    gap: 7px;
}

.meta-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    font-size: 13px;
}

.meta-label {
    color: var(--muted);
}

.meta-value {
    min-width: 0;
    word-break: break-word;
}

.otp-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.10);
}

.otp-highlight-left {
    display: grid;
    gap: 3px;
}

.otp-label {
    color: var(--muted);
    font-size: 12px;
}

.otp-value {
    color: var(--success);
    font-size: 28px;
    letter-spacing: 0.16em;
}

.modal-body {
    display: grid;
    gap: 12px;
    overflow-y: auto;
}

.email-content {
    min-height: 220px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    padding: 14px;
    overflow: auto;
}

.email-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--text);
    font-size: 13px;
}

.html-email-container,
.html-email-container * {
    color: var(--text) !important;
    font-family: 'Share Tech Mono', monospace !important;
    max-width: 100% !important;
}

.html-email-container {
    font-size: 13px;
    word-wrap: break-word;
    overflow-x: auto;
}

.html-email-container a {
    color: var(--accent) !important;
}

.html-email-container img {
    height: auto !important;
    border-radius: 10px;
}

.html-email-container table {
    width: auto !important;
    max-width: 100% !important;
}

.modal-actions {
    display: grid;
}

.toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: min(340px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(4, 11, 22, 0.96);
    color: var(--text);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    font-size: 13px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success svg {
    color: var(--success);
}

.toast.error svg {
    color: var(--danger);
}

#toast-text {
    flex: 1;
    overflow-wrap: anywhere;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 980px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-meter {
        justify-self: start;
    }

    .feature-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .app-shell {
        padding: 12px;
    }

    .topbar {
        border-radius: 20px;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .hero,
    .generator,
    .inbox,
    .utility-panel,
    .warning-panel {
        padding: 16px;
        border-radius: 22px;
    }

    .feature-strip,
    .control-grid,
    .action-grid,
    .status-bar,
    .inbox-tools,
    .utility-grid {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .inbox-top,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .inbox-actions {
        width: 100%;
        justify-content: space-between;
    }

    .stat-panel {
        grid-template-columns: repeat(3, 1fr);
    }

    .mini-stat {
        min-height: 82px;
    }

    .mini-stat span {
        font-size: 23px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
    }

    .modal-card {
        max-height: 92vh;
    }
}

@media (max-width: 430px) {
    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .brand-copy .eyebrow {
        font-size: 9px;
    }

    .topbar-actions .icon-btn:first-child {
        display: none;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .email-input-wrap {
        grid-template-columns: 1fr 44px;
    }

    #btn-copy {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ===== DATZON TEMP MAIL V2.1 CLEANUP ===== */
.hero {
    grid-template-columns: 1fr;
    min-height: auto;
}

.hero-content h1,
.hero-content p {
    max-width: 100%;
}

.inbox {
    display: grid;
    gap: 14px;
}

.inbox-stats {
    margin-top: 2px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.inbox-stats::before {
    display: none;
}

.utility-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.utility-grid-single .tool-card {
    min-height: 94px;
}

.email-card-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.otp-copy-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(54, 231, 255, 0.28);
    color: var(--accent);
    background: rgba(54, 231, 255, 0.08);
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.otp-copy-btn:hover {
    border-color: rgba(54, 231, 255, 0.5);
    background: rgba(54, 231, 255, 0.15);
}

.otp-copy-btn:active {
    transform: scale(0.94);
}

.otp-copy-btn svg {
    width: 17px;
    height: 17px;
}

.refresh-btn.auto-active {
    border-color: rgba(54, 231, 255, 0.42);
    background: rgba(54, 231, 255, 0.11);
    box-shadow: 0 0 24px rgba(54, 231, 255, 0.12);
}

.refresh-icon.auto-spinning {
    animation: spinLinear 850ms linear infinite;
}

@media (max-width: 680px) {
    .inbox-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .email-item-header {
        align-items: flex-start;
    }

    .email-card-actions {
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
