* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-width: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #0b1120;
    color: #e5e7eb;
    line-height: 1.7;
}

a {
    color: #60a5fa;
}

button,
input,
textarea {
    font: inherit;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: #1d4ed8;
}

/* =========================
   Dashboard / base layout
   ========================= */

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

.sidebar {
    flex: 0 0 250px;
    width: 250px;
    min-height: 100vh;
    background: #111827;
    border-left: 1px solid #1f2937;
    padding: 24px 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin-bottom: 40px;
}

.logo {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #2563eb;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: bold;
}

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

.brand span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
    direction: ltr;
}

nav a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 6px;
}

nav a:hover,
nav a.active {
    color: white;
    background: #1d4ed8;
}

.main {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 32px;
}

.topbar {
    margin-bottom: 30px;
}

.topbar h1,
main > h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.4;
}

.topbar p {
    color: #6b7280;
    margin-top: 8px;
}

/* =========================
   Cards
   ========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    min-width: 0;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 22px;
}

.card small,
.card .label {
    color: #9ca3af;
    font-size: 13px;
}

.card strong,
.card .number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    margin-top: 12px;
}

/* =========================
   Generic layout used by
   customers / customer pages
   ========================= */

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

.layout > aside {
    flex: 0 0 250px;
    width: 250px;
    min-height: 100vh;
    background: #111827;
    border-left: 1px solid #1f2937;
    padding: 24px 16px;
}

.layout > aside h2 {
    margin: 0 8px 30px;
    font-size: 18px;
}

.layout > aside a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 6px;
}

.layout > aside a:hover,
.layout > aside a.active {
    color: #fff;
    background: #1d4ed8;
}

.layout > main {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 32px;
}

.layout > main > h1 {
    margin-bottom: 24px;
}

/* =========================
   Panels
   ========================= */

.panel {
    min-width: 0;
    margin-top: 20px;
    padding: 22px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
}

.panel h2 {
    margin: 0 0 18px;
    font-size: 18px;
}

/* =========================
   Forms
   ========================= */

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

input,
textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #374151;
    border-radius: 10px;
    background: #0b1120;
    color: #e5e7eb;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #2563eb;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

label {
    display: block;
    margin: 12px 0 6px;
    color: #d1d5db;
}

/* =========================
   Tables
   ========================= */

.panel:has(table) {
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid #1f2937;
    text-align: right;
    vertical-align: middle;
}

th {
    color: #9ca3af;
    font-size: 13px;
    font-weight: normal;
}

td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

tr:last-child td {
    border-bottom: 0;
}

.config,
.copybox {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
    direction: ltr;
    text-align: left;
}

.copybox {
    padding: 14px;
    border: 1px solid #374151;
    border-radius: 10px;
    background: #0b1120;
}

.muted {
    color: #9ca3af;
}

/* =========================
   Small buttons / status
   ========================= */

.small {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 13px;
}

.success {
    background: #15803d;
}

.success:hover {
    background: #166534;
}

.danger {
    background: #dc2626;
}

.danger:hover {
    background: #b91c1c;
}

/* =========================
   Flash messages
   ========================= */

.flash {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #1f2937;
    border: 1px solid #374151;
}

.flash.success {
    background: #14532d;
    border-color: #166534;
}

.flash.error,
.flash.danger {
    background: #450a0a;
    border-color: #991b1b;
}

/* =========================
   Login
   ========================= */

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: min(100%, 420px);
    padding: 28px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.login-card h1 {
    margin: 0;
    font-size: 25px;
}

.login-card > p {
    color: #9ca3af;
    margin: 6px 0 24px;
}

.login-card form {
    display: flex;
    flex-direction: column;
}

.login-card button {
    width: 100%;
    margin-top: 18px;
}

/* =========================
   Tablet
   ========================= */

@media (max-width: 900px) {
    .sidebar,
    .layout > aside {
        flex-basis: 210px;
        width: 210px;
    }

    .main,
    .layout > main {
        padding: 24px;
    }

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

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

    .form-grid button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 650px) {
    .app,
    .layout {
        display: block;
    }

    .sidebar,
    .layout > aside {
        width: 100%;
        min-height: auto;
        padding: 12px;
        border-left: 0;
        border-bottom: 1px solid #1f2937;
    }

    .brand {
        margin-bottom: 10px;
        padding: 4px;
    }

    .layout > aside h2 {
        margin: 4px 8px 12px;
    }

    nav,
    .layout > aside {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }

    nav a,
    .layout > aside a {
        flex: 1 1 auto;
        margin: 0;
        padding: 10px 12px;
        text-align: center;
        white-space: nowrap;
    }

    .main,
    .layout > main {
        width: 100%;
        padding: 18px 14px;
    }

    .topbar {
        margin-bottom: 20px;
    }

    .topbar h1,
    main > h1 {
        font-size: 22px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card {
        padding: 18px;
    }

    .card strong,
    .card .number {
        font-size: 28px;
    }

    .panel {
        padding: 16px;
        margin-top: 14px;
        border-radius: 13px;
    }

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

    .form-grid button {
        grid-column: auto;
    }

    .panel table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .panel table th,
    .panel table td {
        min-width: 100px;
        white-space: normal;
    }

    .panel table td:nth-child(2) {
        min-width: 180px;
    }

    .copybox,
    .config {
        font-size: 12px;
    }

    .login-wrap {
        padding: 14px;
    }

    .login-card {
        padding: 22px 18px;
        border-radius: 14px;
    }
}

/* =========================
   Very small phones
   ========================= */

@media (max-width: 380px) {
    .main,
    .layout > main {
        padding: 14px 10px;
    }

    .sidebar,
    .layout > aside {
        padding: 10px;
    }

    nav a,
    .layout > aside a {
        font-size: 13px;
        padding: 9px 8px;
    }

    .panel {
        padding: 13px;
    }
}

/* =========================================================
   Global redesign additions
   ========================================================= */

.page-head,
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-head {
    margin-bottom: 22px;
}

.page-head h1,
.page-head h2,
.panel-head h2 {
    margin: 0;
}

.page-head p,
.panel-head p {
    margin: 6px 0 0;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.button.secondary {
    background: #eef2f7;
    color: #243044;
}

.button.secondary:hover {
    background: #e3e8ef;
}

.form-hint {
    margin: 8px 0 14px;
    color: #7b8494;
    font-size: 13px;
}

.form-action {
    display: flex;
    align-items: end;
}

.customer-name {
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.customer-name:hover {
    text-decoration: underline;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-success {
    color: #087443;
    background: #e7f7ef;
}

.status-danger {
    color: #b42318;
    background: #fdecec;
}

.status-muted {
    color: #667085;
    background: #f0f2f5;
}

.config-label {
    font-weight: 600;
}

.empty {
    padding: 24px !important;
    text-align: center;
    color: #7b8494;
}

.subscription-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.expiry-box {
    min-width: 220px;
    padding: 18px;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    background: #fafbfc;
}

.expiry-box strong,
.expiry-box span {
    display: block;
}

.expiry-box strong {
    font-size: 18px;
}

.expiry-box span {
    margin-top: 6px;
    color: #7b8494;
    font-size: 13px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    background: #fafbfc;
}

.setting-row strong {
    display: block;
}

.setting-row p {
    margin: 6px 0 0;
}

.subscription-link {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.subscription-link .copybox {
    flex: 1;
}

.config-summary {
    display: grid;
    gap: 10px;
}

.config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 16px;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    background: #fafbfc;
}

.config-item strong,
.config-item .muted {
    display: block;
}

.config-item .muted {
    margin-top: 5px;
    font-size: 12px;
}

.danger-panel {
    border-color: #f3d0d0;
}

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

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8eef7;
    font-weight: 800;
}

.info-item strong {
    display: block;
}

.info-item p {
    margin: 4px 0 0;
    color: #7b8494;
    font-size: 13px;
}


/* =========================================================
   Public subscription page
   ========================================================= */

.subscription-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #f5f7fb;
}

.subscription-card {
    width: min(680px, 100%);
    padding: 28px;
    border: 1px solid #e7eaf0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(20, 30, 50, 0.08);
}

.subscription-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid #edf0f4;
}

.subscription-brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #182230;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.subscription-brand strong,
.subscription-brand span {
    display: block;
}

.subscription-brand span {
    margin-top: 3px;
    color: #7b8494;
    font-size: 12px;
}

.subscription-header {
    padding: 28px 0 20px;
}

.subscription-header h1 {
    margin: 12px 0 5px;
    font-size: 30px;
}

.subscription-header p {
    margin: 0;
    color: #7b8494;
}

.subscription-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.subscription-stat {
    padding: 16px;
    border-radius: 15px;
    background: #f7f9fc;
}

.subscription-stat span,
.subscription-stat strong {
    display: block;
}

.subscription-stat span {
    color: #7b8494;
    font-size: 12px;
}

.subscription-stat strong {
    margin-top: 7px;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.subscription-info {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.subscription-url-box {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    background: #fafbfc;
}

.subscription-url-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.subscription-url {
    padding: 12px;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    background: #fff;
    direction: ltr;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 13px;
    line-height: 1.7;
}

.subscription-url-box .button {
    width: 100%;
    margin-top: 10px;
}

.subscription-note {
    margin-top: 16px;
    padding: 15px;
    border-radius: 14px;
    background: #f7f9fc;
}

.subscription-note p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.8;
}

.subscription-disabled {
    padding: 50px 20px 30px;
    text-align: center;
}

.subscription-disabled .status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fdecec;
    color: #b42318;
    font-size: 24px;
    font-weight: 800;
}

.subscription-disabled h1 {
    margin: 0 0 8px;
}

.subscription-disabled p {
    margin: 0;
    color: #7b8494;
    line-height: 1.8;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 800px) {

    .page-head,
    .panel-head,
    .setting-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .form-action {
        display: block;
    }

    .table-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table {
        min-width: 720px;
    }

    .subscription-link {
        flex-direction: column;
    }

    .subscription-stats {
        grid-template-columns: 1fr;
    }

    .subscription-card {
        padding: 20px;
        border-radius: 18px;
    }

    .subscription-page {
        padding: 12px;
    }

    .subscription-header h1 {
        font-size: 25px;
    }

}

@media (max-width: 520px) {

    .cards {
        grid-template-columns: 1fr !important;
    }

    .quick-actions {
        flex-direction: column;
    }

    .quick-actions .button {
        width: 100%;
        text-align: center;
    }

    .config-item {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* Global config actions */
.action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-group form {
    margin: 0;
}

.delete-btn {
    background: #dc3545 !important;
    color: #fff !important;
    border: 0 !important;
}

.delete-btn:hover {
    background: #b02a37 !important;
}

@media (max-width: 640px) {
    .action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .action-group button {
        width: 100%;
    }
}


/* ================================
   Public Subscription - New UI
================================ */

.public-subscription-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, .16), transparent 35%),
        radial-gradient(circle at bottom left, rgba(124, 58, 237, .13), transparent 35%),
        #080d18;
    color: #eef4ff;
}

.public-subscription-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    box-sizing: border-box;
}

.public-subscription-card {
    width: min(620px, 100%);
    background: rgba(15, 23, 42, .88);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 26px;
    padding: 28px;
    box-sizing: border-box;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
}

.public-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 38px;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .25);
}

.public-brand strong,
.public-brand span {
    display: block;
}

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

.public-brand span {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.public-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .10);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, .18);
    font-size: 12px;
    font-weight: 700;
}

.public-active-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, .7);
}

.public-welcome {
    margin-bottom: 24px;
}

.public-welcome > span {
    color: #60a5fa;
    font-size: 13px;
    font-weight: 600;
}

.public-welcome h1 {
    margin: 7px 0 8px;
    font-size: 32px;
    line-height: 1.25;
}

.public-welcome p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.public-expiry-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: rgba(30, 41, 59, .72);
    border: 1px solid rgba(148, 163, 184, .11);
}

.public-expiry-icon {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, .12);
    font-size: 20px;
}

.public-expiry-card span,
.public-expiry-card strong {
    display: block;
}

.public-expiry-card span {
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 5px;
}

.public-expiry-card strong {
    font-size: 14px;
    direction: ltr;
    text-align: right;
}

.public-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.public-stat {
    padding: 16px;
    border-radius: 17px;
    background: rgba(15, 23, 42, .7);
    border: 1px solid rgba(148, 163, 184, .10);
}

.public-stat span,
.public-stat strong {
    display: block;
}

.public-stat span {
    color: #94a3b8;
    font-size: 11px;
    margin-bottom: 7px;
}

.public-stat strong {
    font-size: 14px;
}

.public-subscription-box {
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(
        145deg,
        rgba(37, 99, 235, .11),
        rgba(124, 58, 237, .08)
    );
    border: 1px solid rgba(96, 165, 250, .14);
}

.public-box-title {
    margin-bottom: 13px;
}

.public-box-title strong,
.public-box-title span {
    display: block;
}

.public-box-title strong {
    font-size: 14px;
}

.public-box-title span {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 4px;
}

.public-url-row {
    display: flex;
    gap: 9px;
    align-items: stretch;
}

.public-url {
    min-width: 0;
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    background: rgba(2, 6, 23, .65);
    border: 1px solid rgba(148, 163, 184, .12);
    color: #a5b4fc;
    font-size: 11px;
    direction: ltr;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-copy-btn {
    flex-shrink: 0;
    border: 0;
    border-radius: 12px;
    padding: 0 17px;
    background: #2563eb;
    color: white;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.public-copy-btn:hover {
    transform: translateY(-1px);
    background: #3b82f6;
}

.public-update-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    padding: 15px;
    border-radius: 17px;
    background: rgba(34, 197, 94, .055);
    border: 1px solid rgba(34, 197, 94, .10);
}

.public-update-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(34, 197, 94, .11);
    color: #4ade80;
    font-size: 18px;
}

.public-update-card strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.public-update-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.8;
}

.public-footer {
    text-align: center;
    color: #64748b;
    font-size: 10px;
    margin-top: 22px;
}

/* Disabled / expired */
.public-state {
    text-align: center;
    padding: 35px 10px 20px;
}

.public-state-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 26px;
    font-weight: 800;
}

.public-state-danger .public-state-icon {
    background: rgba(239, 68, 68, .12);
    color: #f87171;
}

.public-state h1 {
    margin: 0 0 10px;
    font-size: 23px;
}

.public-state p {
    margin: 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.9;
}

/* Mobile */
@media (max-width: 600px) {
    .public-subscription-shell {
        padding: 12px;
        align-items: flex-start;
    }

    .public-subscription-card {
        margin-top: 8px;
        padding: 20px 16px;
        border-radius: 21px;
    }

    .public-top {
        margin-bottom: 30px;
    }

    .public-welcome h1 {
        font-size: 27px;
    }

    .public-stats {
        gap: 8px;
    }

    .public-stat {
        padding: 13px 9px;
        text-align: center;
    }

    .public-stat span {
        font-size: 10px;
    }

    .public-stat strong {
        font-size: 13px;
    }

    .public-url-row {
        flex-direction: column;
    }

    .public-url {
        width: 100%;
        box-sizing: border-box;
    }

    .public-copy-btn {
        min-height: 44px;
        width: 100%;
    }
}

