@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/*html {*/
/*    font-size: 14px;*/
/*}*/

/*body {*/
/*    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;*/
/*    font-size: 14px;*/
/*    line-height: 1.45;*/
/*    color: #0f172a;*/
/*    background: #f6f9fc;*/
/*}*/

/* headings */
h1, .h1 { font-size: 30px; line-height: 1.2; font-weight: 600; }
h2, .h2 { font-size: 24px; line-height: 1.25; font-weight: 600; }
h3, .h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
h4, .h4 { font-size: 18px; line-height: 1.35; font-weight: 600; }
h5, .h5 { font-size: 16px; line-height: 1.35; font-weight: 600; }
h6, .h6 { font-size: 14px; line-height: 1.4; font-weight: 600; }

a[href],
button,
.btn,
.dropdown-item {
    cursor: pointer !important;
}
/* text helpers */
.text-muted,
.small,
small {
    color: #64748b !important;
}

.small,
small {
    font-size: 12px !important;
    line-height: 1.4;
}

/* buttons */
.btn {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: none !important;
}

.btn-sm {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 10px;
}

.btn-lg {
    font-size: 15px;
    padding: 12px 18px;
    border-radius: 14px;
}

/* inputs */
.form-control,
.form-select {
    min-height: 44px;
    font-size: 14px;
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.10);
    padding: 10px 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(99, 91, 255, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(99, 91, 255, 0.12);
}

/* cards */
.dashboard-card,
.card {
    border-radius: 20px;
}

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

/* metric blocks */
.metric-label,
.stat-label {
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
    font-weight: 500;
}

.metric-value,
.stat-number {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* nav */
.dashboard-nav-link {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    padding: 12px 14px;
    border-radius: 12px;
}

/* table */
.table th {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-transform: none;
}

.table td {
    font-size: 14px;
    line-height: 1.4;
}

/* badges */
.badge {
    font-size: 12px;
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 999px;
}

html, body {
    height: 100%;
}

body {
    background: #f6f9fc;
    color: #0f172a;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-layout {
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 272px;
    background: #fff;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.dashboard-logo-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #635bff;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.dashboard-search {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    min-height: 44px;
}

.dashboard-search:focus {
    background: #fff;
    border-color: rgba(99, 91, 255, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(99, 91, 255, 0.12);
}

.dashboard-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.05);
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.dashboard-nav-link:hover {
    background: #f8fafc;
    color: #0f172a;
}

.dashboard-nav-link.active {
    background: #0f172a;
    color: #fff;
}

.dashboard-user-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.metric-value {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.15;
}

.metric-label {
    color: #64748b;
    font-size: 14px;
}

.metric-meta {
    font-size: 14px;
}

.chart-box {
    height: 320px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
            radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.12) 1px, transparent 0);
    background-size: 18px 18px;
    position: relative;
    overflow: hidden;
}

.chart-box svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 24px;
}

.balance-dark {
    background: #0f172a;
    color: #fff;
    border-radius: 18px;
    padding: 24px;
}

.table-dashboard th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 500;
    border-bottom: 1px solid #eef2f7;
}

.table-dashboard td {
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
}

.badge-soft-success {
    background: #ecfdf3;
    color: #027a48;
}

.badge-soft-warning {
    background: #fffaeb;
    color: #b54708;
}

.badge-soft-danger {
    background: #fff1f3;
    color: #c01048;
}

@media (max-width: 991.98px) {
    .dashboard-sidebar {
        min-height: auto;
        position: static;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }
}


.dropdown-menu .dropdown-item {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background: #0f172a;
    color: #fff;
}

.language-switcher-btn {
    min-height: 40px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.language-switcher-btn:hover {
    background: #f8fafc;
}

/*ТОВАРИ*/
.products-page {
    max-width: 1320px;
}

.products-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.products-title {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}

.products-subtitle {
    margin-top: 6px;
    color: #64748b;
    font-size: 14px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.products-search {
    max-width: 360px;
    width: 100%;
}

.products-search .form-control {
    min-height: 44px;
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: none;
    font-size: 14px;
}

.products-search .form-control:focus {
    border-color: rgba(99, 91, 255, .45);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, .10);
}

.stripe-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 12px 28px rgba(15,23,42,.04);
}

.btn-stripe-primary {
    border: 0;
    background: #635bff;
    color: #fff;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(99, 91, 255, .20);
}

.btn-stripe-primary:hover {
    background: #554cf0;
    color: #fff;
}

.products-table {
    margin: 0;
}

.products-table thead th {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    padding: 14px 20px;
    border-bottom: 1px solid #eef2f7;
    background: #fbfcfe;
    white-space: nowrap;
}

.products-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.products-table tbody tr:last-child td {
    border-bottom: 0;
}

.products-table tbody tr:hover {
    background: #fcfdff;
}

.product-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.product-thumb {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumb-placeholder {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    max-width: 420px;
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.product-date {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

.badge-soft-success {
    background: #ecfdf3;
    color: #027a48;
}

.badge-soft-warning {
    background: #fffaeb;
    color: #b54708;
}

.badge-soft-secondary {
    background: #f1f5f9;
    color: #475569;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.product-actions .btn {
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    padding: 6px 10px;
}

.products-empty-note {
    padding: 14px 20px;
    border-bottom: 1px solid #eef2f7;
    color: #64748b;
    font-size: 13px;
    background: #fff;
}

@media (max-width: 991.98px) {
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .products-search {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .products-head {
        flex-direction: column;
        align-items: stretch;
    }

    .products-title {
        font-size: 24px;
    }

    .products-table thead {
        display: none;
    }

    .products-table,
    .products-table tbody,
    .products-table tr,
    .products-table td {
        display: block;
        width: 100%;
    }

    .products-table tbody tr {
        padding: 16px 0;
        border-bottom: 1px solid #eef2f7;
    }

    .products-table tbody td {
        border: 0;
        padding: 6px 16px;
    }

    .products-table tbody tr:last-child {
        border-bottom: 0;
    }

    .product-main {
        margin-bottom: 8px;
    }

    .product-actions {
        padding-top: 10px !important;
    }
}

/*Додавання товару*/
.product-page {
    max-width: 1320px;
}

.product-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.product-page-title {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}

.product-page-subtitle {
    margin-top: 6px;
    color: #64748b;
    font-size: 14px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 24px;
    align-items: start;
}

.stripe-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 12px 28px rgba(15,23,42,.04);
}

.stripe-section + .stripe-section {
    border-top: 1px solid #eef2f7;
}

.stripe-section-head {
    padding: 22px 24px 0;
}

.stripe-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.stripe-section-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

.stripe-section-body {
    padding: 20px 24px 24px;
}

.stripe-field .form-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.stripe-field .form-control,
.stripe-field .form-select {
    min-height: 46px;
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.10);
    font-size: 14px;
    padding: 12px 14px;
    box-shadow: none;
}

.stripe-field textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.stripe-field .form-control:focus,
.stripe-field .form-select:focus {
    border-color: rgba(99, 91, 255, .45);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, .10);
}

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

.upload-box {
    position: relative;
    display: block;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    padding: 18px;
    transition: .18s ease;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.upload-box.is-dragover {
    border-color: #635bff;
    background: rgba(99, 91, 255, .05);
}

.upload-box input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-box-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 18px;
    flex: 0 0 auto;
}

.upload-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.upload-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.upload-preview {
    margin-top: 16px;
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: none;
}

.upload-preview.show {
    display: block;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sticky-preview {
    position: sticky;
    top: 88px;
}

.preview-head {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 600;
}

.preview-body {
    padding: 20px;
}

.preview-cover {
    height: 180px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #eef2f7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.preview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.preview-cover-placeholder {
    text-align: center;
    padding: 24px;
    display: block;
}

.preview-cover.has-image img {
    display: block;
}

.preview-cover.has-image .preview-cover-placeholder {
    display: none;
}

.preview-cover-placeholder-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.preview-cover-placeholder-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.preview-product-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;
    margin: 18px 0 8px;
    letter-spacing: -0.02em;
}

.preview-product-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    min-height: 66px;
}

.preview-price-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-price {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.preview-price-note {
    color: #64748b;
    font-size: 12px;
}

.preview-buy-btn {
    width: 100%;
    margin-top: 18px;
    border: 0;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    min-height: 46px;
    font-size: 14px;
    font-weight: 600;
}

.preview-meta {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.preview-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.preview-meta-label {
    color: #64748b;
}

.preview-meta-value {
    color: #0f172a;
    font-weight: 500;
    text-align: right;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-top: 1px solid #eef2f7;
}

.form-footer-text {
    color: #64748b;
    font-size: 13px;
}

.btn-stripe-primary {
    border: 0;
    background: #635bff;
    color: #fff;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(99, 91, 255, .20);
}

.btn-stripe-primary:hover,
.btn-stripe-primary:focus {
    background: #554cf0;
    color: #fff;
}

.btn-stripe-light {
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    color: #0f172a;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
}

.stripe-helper {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
}

@media (max-width: 1199.98px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .sticky-preview {
        position: static;
        top: auto;
    }
}

@media (max-width: 767.98px) {
    .product-page-title {
        font-size: 24px;
    }

    .stripe-grid-2 {
        grid-template-columns: 1fr;
    }

    .product-page-head,
    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/*настройки магазина и профиля*/
.settings-layout-single {
    max-width: 920px;
}

.settings-page {
    max-width: 1320px;
}

.settings-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.settings-page-title {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
}

.settings-page-subtitle {
    margin-top: 6px;
    color: #64748b;
    font-size: 14px;
}

.stripe-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 12px 28px rgba(15,23,42,.04);
}

.stripe-section + .stripe-section {
    border-top: 1px solid #eef2f7;
}

.stripe-section-head {
    padding: 22px 24px 0;
}

.stripe-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.stripe-section-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

.stripe-section-body {
    padding: 20px 24px 24px;
}

.stripe-field .form-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.stripe-field .form-control,
.stripe-field .form-select {
    min-height: 46px;
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.10);
    font-size: 14px;
    padding: 12px 14px;
    box-shadow: none;
}

.stripe-field .form-control:focus,
.stripe-field .form-select:focus {
    border-color: rgba(99, 91, 255, .45);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, .10);
}

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

.upload-box {
    position: relative;
    display: block;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    padding: 18px;
    transition: .18s ease;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.upload-box input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-box-top {
    display: flex;
    gap: 14px;
    align-items: center;
}

.upload-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 18px;
    flex: 0 0 auto;
}

.upload-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.upload-text {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-top: 1px solid #eef2f7;
}

.form-footer-text {
    color: #64748b;
    font-size: 13px;
}

.btn-stripe-primary {
    border: 0;
    background: #635bff;
    color: #fff;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(99, 91, 255, .20);
}

.btn-stripe-primary:hover,
.btn-stripe-primary:focus {
    background: #554cf0;
    color: #fff;
}

.btn-stripe-light {
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    color: #0f172a;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .settings-page-title {
        font-size: 24px;
    }

    .stripe-grid-2 {
        grid-template-columns: 1fr;
    }

    .settings-page-head,
    .form-footer {
        flex-direction: column;
        align-items: stretch;
    }
}


/*Авторизація*/
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: #f6f9fc;
}

.auth-card {
    width: 100%;
    max-width: 620px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 12px 28px rgba(15,23,42,.04);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.auth-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #635bff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.auth-brand-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.auth-brand-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

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

.auth-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
}

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

.auth-col-full {
    grid-column: 1 / -1;
}

.auth-field {
    margin-bottom: 0;
}

.auth-field .form-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0f172a;
}

.auth-field .form-control {
    min-height: 46px;
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.10);
    font-size: 14px;
    padding: 12px 14px;
    box-shadow: none;
}

.auth-field .form-control:focus {
    border-color: rgba(99, 91, 255, .45);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, .10);
}

.auth-actions {
    margin-top: 24px;
}

.btn-auth-primary {
    width: 100%;
    border: 0;
    background: #635bff;
    color: #fff;
    min-height: 48px;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(99, 91, 255, .20);
}

.btn-auth-primary:hover,
.btn-auth-primary:focus {
    background: #554cf0;
    color: #fff;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.auth-footer a {
    color: #635bff;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .auth-card {
        padding: 22px 18px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }
}
.auth-topbar{
    position:absolute;
    top:20px;
    right:24px;
}

.auth-link {
    color: #635bff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.auth-link:hover {
    color: #554cf0;
}
.password-input-wrap {
    position: relative;
}

.password-input-wrap input {
    padding-right: 42px;
}
.password-input-wrap .form-control {
    padding-right: 70px;
}

.password-input-wrap .password-toggle {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
}

.password-toggle:hover {
    color: #0f172a;
}

.settings-subnav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.settings-subnav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.settings-subnav-link.active {
    background: #0f172a;
    color: #fff;
}

.stripe-grid-col-full {
    grid-column: 1 / -1;
}
.settings-subnav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.settings-subnav-link {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #334155;
    transition: all .15s ease;
}

.settings-subnav-link:hover {
    background: #f1f5f9;
}

.settings-subnav-link.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-footer-text {
    flex: 1;
    font-size: 14px;
    color: #64748b;
}

.form-footer .btn-stripe-primary,
.form-footer .btn-stripe-light {
    white-space: nowrap;
}

.form-footer .d-flex {
    flex-shrink: 0;
}
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-stat-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 12px 28px rgba(15,23,42,.04);
    padding: 20px;
}

.dashboard-stat-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.dashboard-stat-value {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.dashboard-stat-meta {
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.btn-stripe-filter {
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #fff;
    color: #0f172a;
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
}

.btn-stripe-filter:hover {
    background: #f8fafc;
}

.payouts-empty-state {
    padding: 64px 24px;
    text-align: center;
}

.payouts-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.payouts-empty-title {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.payouts-empty-text {
    max-width: 560px;
    margin: 0 auto 24px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
}

.transactions-stats {
    align-items: stretch;
}

.stat-card {
    display: block;
    min-width: 120px;
    padding: 14px 18px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fff;
    transition: .2s ease;
    color: inherit;
}

.stat-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.stat-card.is-active {
    border-color: #0f172a;
    background: #0f172a;
}

.stat-card.is-active .stat-label,
.stat-card.is-active .stat-value {
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
}
.store-design-page {
    padding: 24px 0 40px;
}

.store-design-header {
    margin-bottom: 24px;
}

.store-design-title {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #0f172a;
}

.store-design-subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #64748b;
}

.store-design-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.store-design-sidebar,
.store-design-content {
    min-width: 0;
}

.design-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    padding: 22px;
}

.design-panel + .design-panel {
    margin-top: 20px;
}

.design-panel-label {
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.current-template-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
}

.current-template-preview {
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.current-template-preview img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.current-template-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.current-template-body {
    padding: 18px;
}

.current-template-name {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
}

.current-template-code {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6366f1;
}

.current-template-description,
.empty-current-template,
.empty-template-catalog {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
}

.design-tip-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.design-tip-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.template-catalog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.template-catalog-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.template-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.template-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border-color: #dbe3ee;
}

.template-card.is-current {
    border-color: #c7d2fe;
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.10);
}

.template-preview-wrap {
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.template-preview {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.template-status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.template-card-body {
    padding: 18px;
}

.template-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.template-name {
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
}

.template-code {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6366f1;
}

.template-description {
    min-height: 66px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
}

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

.btn-template {
    appearance: none;
    border: 0;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease;
}

.btn-template:disabled {
    opacity: .65;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-template-light {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

.btn-template-light:hover {
    background: #f1f5f9;
}

.btn-template-primary {
    background: #111827;
    color: #fff;
}

.btn-template-primary:hover {
    background: #0b1220;
}

@media (max-width: 1199px) {
    .store-design-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .store-design-title {
        font-size: 28px;
    }

    .design-panel {
        padding: 18px;
        border-radius: 20px;
    }

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

    .template-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-template {
        width: 100%;
    }

    .current-template-preview img,
    .template-preview {
        height: 170px;
    }
}

/*design preview*/
.template-preview-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
}

.template-preview-window{
    width:90%;
    height:90%;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    position:relative;
}

.template-preview-toolbar{
    display:flex;
    gap:10px;
    padding:10px;
    border-bottom:1px solid #eee;
}

.preview-device{
    border:1px solid #ddd;
    background:#fff;
    padding:6px 10px;
    cursor:pointer;
}

.template-preview-content{
    width:100%;
    height:calc(100% - 50px);
    display:flex;
    justify-content:center;
    align-items:flex-start;
    overflow:auto;
}

.template-preview-frame{
    width:100%;
    height:100%;
    border:0;
}

.template-preview-close{
    position:absolute;
    top:10px;
    right:10px;
    border:0;
    background:#000;
    color:#fff;
    width:30px;
    height:30px;
    border-radius:50%;
    cursor:pointer;
}

.hidden{
    display:none;
}
.invalid-feedback {
    display: block !important;
}