:root {
    --bg: #f8fafc;
    --paper: #ffffff;
    --paper-soft: #f1f5f9;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --quiet: #94a3b8;
    --line: #e2e8f0;
    --line-soft: #f1f5f9;
    --brand: #2563eb;
    --brand-2: #1d4ed8;
    --brand-soft: #eff6ff;
    --green: #10b981;
    --green-soft: #ecfdf5;
    --amber: #f59e0b;
    --amber-soft: #fffbeb;
    --red: #ef4444;
    --red-soft: #fef2f2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

html,
body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
    color: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

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

svg {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-promise {
    min-height: 36px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--ink);
    flex: 0 0 auto;
    overflow: hidden;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.free-badge {
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.nav a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nav a:hover {
    color: var(--brand);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-switcher select {
    height: 38px;
    min-width: 108px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    padding: 0 30px 0 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.coffee-btn {
    height: 38px;
    border-radius: 999px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--amber-soft);
    color: var(--amber);
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.coffee-btn:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    place-items: center;
    border: 1px solid var(--line);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.show {
    display: block;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-nav a,
.mobile-menu-nav button {
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text);
    text-align: left;
}

.mobile-support-btn {
    background: var(--amber-soft);
    color: var(--amber);
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
}

.main {
    flex: 1;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.ad-slot {
    display: none;
    position: relative;
    overflow: hidden;
}

.ad-slot.ad-live {
    display: block;
}

.ad-slot iframe,
.ad-slot img {
    max-width: 100%;
}

.ad-image-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.ad-image-link img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

body.ads-disabled .ad-slot {
    display: none !important;
}

.top-ad {
    max-width: 800px;
    height: 90px;
    margin: 0 auto 24px;
}

.desktop-rail-ad {
    position: fixed;
    top: 122px;
    z-index: 40;
    width: 160px;
    min-height: 600px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.desktop-rail-ad-left {
    left: max(16px, calc((100vw - 1200px) / 2 - 184px));
}

.desktop-rail-ad-right {
    right: max(16px, calc((100vw - 1200px) / 2 - 184px));
}

.desktop-rail-ad .ad-placeholder {
    min-height: 600px;
}

.ad-placeholder {
    position: relative;
    min-height: 100%;
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: var(--radius-md);
    background: var(--paper-soft);
    color: var(--quiet);
    text-align: center;
    font-size: 12px;
}

.ad-label {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
}

.ad-rendered-label {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    pointer-events: none;
}

.hero-copy {
    text-align: center;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 900;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--muted);
    margin-top: 8px;
}

.hero-subtitle strong {
    color: var(--green);
    font-weight: 700;
}

.public-stats-strip {
    max-width: 980px;
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.public-stat-item {
    min-width: 0;
    padding: 18px 16px;
    text-align: center;
    border-right: 1px solid var(--line-soft);
}

.public-stat-item:last-child {
    border-right: 0;
}

.public-stat-value {
    font-family: var(--mono);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 900;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.public-stat-label {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.3;
}

.mail-dashboard {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.mail-dashboard.loading .email-display-button {
    color: transparent;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.25s ease infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

body.mailbox-expired-state .email-display-button {
    color: var(--ink);
}

.status-alert {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-alert[hidden] {
    display: none;
}

.status-alert.info {
    background: var(--brand-soft);
    color: var(--brand);
    border-bottom-color: rgba(37, 99, 235, 0.1);
}

.status-alert.warning {
    background: var(--amber-soft);
    color: var(--amber);
    border-bottom-color: rgba(245, 158, 11, 0.1);
}

.status-alert.expired {
    background: var(--red-soft);
    color: var(--red);
    border-bottom-color: rgba(239, 68, 68, 0.1);
}

.dashboard-controls {
    padding: 24px;
    background: #ffffff;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.email-address-area {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.address-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.email-field {
    position: absolute;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.email-display-button {
    min-width: 0;
    max-width: 100%;
    font-family: var(--mono);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 800;
    color: var(--ink);
    text-align: left;
    word-break: break-word;
    overflow-wrap: anywhere;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.email-display-button:hover {
    color: var(--brand);
}

.mailbox-meta-strip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    flex-wrap: wrap;
    white-space: nowrap;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.timer-pill .timer {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--ink);
}

.timer-pill .timer.warn {
    color: var(--amber);
}

.timer-pill .timer.danger {
    color: var(--red);
}

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

.status-dot.warn {
    background: var(--amber);
}

.status-dot.danger,
.status-dot.offline {
    background: var(--red);
}

.mailbox-action-bar {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line-soft);
    background: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.toolbar-btn {
    height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    min-width: 0;
}

.toolbar-btn span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toolbar-btn:hover:not(:disabled) {
    background: var(--paper-soft);
    border-color: var(--quiet);
    color: var(--ink);
}

.toolbar-btn.primary {
    background: var(--ink);
    color: #ffffff;
    border-color: var(--ink);
}

.toolbar-btn.primary:hover:not(:disabled) {
    background: #1e293b;
    border-color: #1e293b;
}

.toolbar-btn.danger:hover:not(:disabled) {
    border-color: var(--red);
    background: var(--red-soft);
    color: var(--red);
}

.life-track {
    height: 3px;
    background: var(--line-soft);
    width: 100%;
    position: relative;
}

.life-progress {
    height: 100%;
    width: 100%;
    background: var(--green);
    transition: width 1s linear, background 0.2s ease;
}

body.mailbox-expired-state .life-progress {
    background: var(--quiet) !important;
}

.custom-mailbox-bar {
    background: var(--paper-soft);
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-bar-header {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.domain-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.custom-prefix-box {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.custom-prefix-box input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0 16px;
    background: #ffffff;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
}

.custom-prefix-box input::placeholder {
    color: var(--quiet);
}

.domain-at {
    color: var(--quiet);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 16px;
}

.domain-select-wrapper {
    position: relative;
    min-width: 180px;
    flex: 1;
}

.domain-select-trigger {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

#selectedDomainLabel {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-select-wrapper select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.custom-generate-btn {
    height: 42px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.custom-generate-btn:hover:not(:disabled) {
    background: var(--brand-2);
}

.hint {
    min-height: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.hint:empty {
    display: none;
}

.workspace {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    height: 600px;
    background: #ffffff;
    position: relative;
}

.inbox-overlay {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    text-align: center;
}

.inbox-overlay[hidden] {
    display: none;
}

.inbox-overlay-icon {
    font-size: 40px;
    margin-bottom: 12px;
    color: var(--quiet);
}

.inbox-overlay h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.inbox-overlay p {
    font-size: 13.5px;
    color: var(--muted);
    max-width: 320px;
    margin-bottom: 16px;
}

.inbox-panel {
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    background: #fafbfe;
    min-width: 0;
}

.inbox-head {
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
}

.inbox-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--ink);
    font-size: 15px;
}

.count-pill {
    height: 20px;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.listen-state {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

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

.live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.live-dot.stopped {
    background: var(--quiet);
}

.live-dot.stopped::after {
    animation: none;
    opacity: 0;
}

.search-wrap {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    background: #ffffff;
}

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

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--quiet);
}

.search-box input {
    width: 100%;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding-left: 36px;
    padding-right: 12px;
    font-size: 13px;
    background: var(--bg);
}

.mail-list {
    flex: 1;
    overflow-y: auto;
}

.mail-list::-webkit-scrollbar {
    width: 5px;
}

.mail-list::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 99px;
}

.mail-list-item {
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    background: transparent;
    text-align: left;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.mail-list-item:hover {
    background: var(--line-soft);
}

.mail-list-item.active {
    background: #ffffff;
    border-left-color: var(--brand);
    box-shadow: var(--shadow-sm);
}

.mail-from {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-subject {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-preview {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.mail-time {
    font-size: 11px;
    color: var(--quiet);
    font-weight: 500;
}

.tag,
.code-badge {
    font-size: 10px;
    font-weight: 750;
    padding: 2px 8px;
    border-radius: 99px;
    background: var(--line);
    color: var(--muted);
    white-space: nowrap;
}

.code-badge {
    background: var(--brand-soft);
    color: var(--brand);
    font-family: var(--mono);
}

.empty-state {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--quiet);
}

.empty-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.empty-sub {
    font-size: 12.5px;
    color: var(--quiet);
    line-height: 1.55;
}

.inbox-ad {
    padding: 12px;
    border-top: 1px solid var(--line-soft);
    background: #ffffff;
}

.inbox-ad .ad-placeholder {
    min-height: 60px;
}

.reader-panel {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    min-width: 0;
}

.reader-toolbar {
    height: 56px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px solid var(--line-soft);
}

.icon-btn:hover {
    background: var(--line-soft);
    color: var(--ink);
}

.reader-title-small {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    min-width: 0;
}

.download-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

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

.reader-code-banner,
.sheet-code-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: var(--brand-soft);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.reader-code-banner.show,
.sheet-code-banner.show {
    display: flex;
}

.code-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
}

.code-value {
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: 2px;
    margin-top: 2px;
}

.reader-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.reader-empty {
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--quiet);
}

.side-ad {
    padding: 0 24px 20px;
}

.side-ad .ad-placeholder {
    min-height: 90px;
}

.error-card {
    max-width: 600px;
    margin: 40px auto;
}

.error-state {
    padding: 40px 24px;
    border: 1px solid var(--red-soft);
    border-radius: var(--radius-lg);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.error-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    font-size: 20px;
    font-weight: 800;
}

.error-action {
    padding: 0 22px;
}

.features {
    margin-top: 24px;
    padding: 48px 0;
    border-top: 1px solid var(--line);
}

.section-head {
    text-align: center;
    margin-bottom: 36px;
}

.section-head h2 {
    font-size: 24px;
    font-weight: 850;
    color: var(--ink);
}

.section-head p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-item {
    background: #ffffff;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-align: left;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-icon.green {
    background: var(--green-soft);
    color: var(--green);
}

.feature-icon.blue {
    background: var(--brand-soft);
    color: var(--brand);
}

.feature-icon.purple {
    background: #faf5ff;
    color: #a855f7;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
}

.support {
    padding: 32px 0;
}

.support-box {
    background: linear-gradient(to right bottom, #ffffff, var(--amber-soft));
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.support-icon {
    display: none;
}

.support h2 {
    font-size: 22px;
    font-weight: 850;
    color: var(--ink);
    margin-bottom: 8px;
}

.support p {
    font-size: 14px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.support-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.yellow-btn {
    height: 46px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    background: var(--amber);
    color: #ffffff;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.white-btn {
    height: 46px;
    padding: 0 24px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--line);
    font-weight: 700;
}

.compact-btn {
    height: 34px;
    min-height: 34px;
    padding: 0 14px;
    font-size: 12px;
}

.footer {
    border-top: 1px solid var(--line);
    background: #ffffff;
    padding: 24px 0;
    margin-top: auto;
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a,
.footer-links button {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--brand);
}

.content-page {
    background: var(--bg);
}

.content-shell {
    width: min(1080px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

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

.content-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    font-size: 13px;
    font-weight: 700;
}

.content-nav a,
.content-language-link {
    color: var(--muted);
    text-decoration: none;
}

.content-nav a:hover,
.content-nav a.active,
.content-language-link:hover,
.content-language-link.active {
    color: var(--brand);
}

.content-main {
    flex: 1;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    padding: 48px 0 56px;
}

.content-side {
    position: sticky;
    top: 96px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.content-side-label {
    margin-bottom: 4px;
    color: var(--quiet);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-language-link {
    font-size: 13px;
    font-weight: 700;
}

.content-article {
    min-width: 0;
    max-width: 760px;
}

.content-kicker {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.content-article h1 {
    color: var(--ink);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: 0;
}

.content-lead {
    margin-top: 16px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.7;
}

.content-section {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.content-section h2 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.35;
}

.content-section p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}

.content-section p + p {
    margin-top: 12px;
}

.content-cta {
    width: fit-content;
    min-height: 44px;
    margin-top: 36px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.content-cta:hover {
    background: #1e293b;
}

.content-footer {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--ink);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: min(420px, 100%);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.modal-card.wide {
    width: min(540px, 100%);
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}

.modal-body {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.primary-btn {
    min-height: 42px;
    background: var(--ink);
    color: #ffffff;
    border-radius: var(--radius-md);
    font-weight: 700;
}

.secondary-btn {
    min-height: 42px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    font-weight: 700;
}

.modal-actions .primary-btn,
.modal-actions .secondary-btn {
    flex: 1;
}

.share-link {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 0 12px;
    font-family: var(--mono);
    font-size: 12px;
    text-align: center;
    margin-bottom: 16px;
}

.sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 520;
    background: rgba(15, 23, 42, 0.4);
}

.sheet-backdrop.show {
    display: block;
}

.mail-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    z-index: 540;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.94, 0.6, 1);
    will-change: transform;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 -8px 10px -6px rgba(0, 0, 0, 0.1);
}

.mail-sheet.show {
    transform: translateY(0);
}

.sheet-head {
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.sheet-drag-handle {
    width: 36px;
    height: 4px;
    border-radius: 99px;
    background: var(--line);
    margin: 0 auto;
}

.sheet-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sheet-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sheet-body {
    flex: 1;
    min-height: 220px;
    overflow-y: auto;
    padding: 20px 16px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.ad-sticky {
    display: none;
}

.ad-sticky.ad-live {
    display: none;
}

@media (max-width: 1580px) {
    .desktop-rail-ad {
        display: none !important;
    }
}

@media (max-width: 980px) {
    .ad-sticky.ad-live {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 500;
        min-height: 64px;
        border-radius: var(--radius-md);
        background: #ffffff;
        box-shadow: var(--shadow-lg);
        display: block;
    }

    .ad-sticky .ad-placeholder {
        min-height: 64px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-button {
        display: grid;
    }

    .workspace {
        grid-template-columns: 1fr;
        height: 480px;
        border-radius: var(--radius-md);
    }

    .reader-panel {
        display: none;
    }

    .content-header {
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .content-nav {
        justify-content: flex-start;
    }

    .content-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0 44px;
    }

    .content-side {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .content-side-label {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .header-inner {
        width: calc(100% - 24px);
    }

    .main {
        width: calc(100% - 24px);
        padding: 16px 0 48px;
    }

    .content-shell {
        width: calc(100% - 24px);
    }

    .content-nav {
        gap: 10px;
        font-size: 12.5px;
    }

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

    .content-lead {
        font-size: 16px;
    }

    .content-section h2 {
        font-size: 19px;
    }

    .content-section p {
        font-size: 14.5px;
    }

    .content-cta {
        width: 100%;
        text-align: center;
    }

    .top-promise {
        font-size: 12px;
        padding: 7px 12px;
    }

    .coffee-btn {
        display: none;
    }

    .language-switcher select {
        min-width: 96px;
        height: 36px;
        font-size: 12px;
    }

    .top-ad {
        height: 64px;
        margin-bottom: 18px;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 34px);
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 1.55;
    }

    .public-stats-strip {
        margin-bottom: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-stat-item {
        padding: 15px 10px;
    }

    .public-stat-item:nth-child(2) {
        border-right: 0;
    }

    .public-stat-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--line-soft);
    }

    .public-stat-value {
        font-size: 21px;
    }

    .public-stat-label {
        font-size: 12px;
    }

    .dashboard-controls {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .email-address-area {
        align-items: flex-start;
    }

    .mailbox-meta-strip {
        justify-content: flex-start;
        padding-left: 48px;
        white-space: normal;
    }

    .address-icon-wrapper {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-sm);
    }

    .email-display-button {
        font-size: clamp(18px, 5.5vw, 24px);
        line-height: 1.25;
    }

    .mailbox-action-bar {
        padding: 14px 16px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .mailbox-action-bar #activateBtn {
        order: 1;
    }

    .mailbox-action-bar #generateBtn {
        order: 2;
    }

    .mailbox-action-bar #copyEmailBtn {
        order: 3;
    }

    .mailbox-action-bar #receivingTestBtn {
        order: 4;
    }

    .mailbox-action-bar #destroyBtn {
        order: 5;
        grid-column: 1 / -1;
    }

    .toolbar-btn {
        height: 44px;
        font-size: 13px;
        padding: 0 8px;
        min-width: 0;
    }

    .custom-mailbox-bar {
        padding: 14px 16px;
    }

    .domain-tools-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .custom-prefix-box input,
    .domain-select-trigger,
    .custom-generate-btn {
        height: 44px;
    }

    .domain-select-wrapper {
        min-width: 100%;
    }

    .custom-generate-btn {
        width: 100%;
    }

    .domain-at {
        display: none;
    }

    .workspace {
        height: 500px;
    }

    .listen-state {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-item {
        padding: 18px;
    }

    .support-box {
        padding: 24px 16px;
    }

    .support-actions {
        flex-direction: column;
        gap: 10px;
    }

    .support-actions button {
        width: 100%;
        height: 44px;
    }

    .footer-inner,
    .footer-links {
        flex-direction: column;
        text-align: center;
    }

    .modal-card {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }

    .modal-actions button {
        width: 100%;
        height: 44px;
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 16px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .free-badge {
        display: none;
    }

    .top-promise {
        font-size: 11.5px;
        padding: 6px 12px;
    }

    .toolbar-btn {
        font-size: 12px;
    }
}
