:root {
    /* Clothiq Studio brand */
    --clothiq-blue: #2454F4;
    --clothiq-blue-dark: #1740D8;
    --clothiq-blue-hover: #1D49E8;
    --clothiq-blue-soft: #EEF3FF;
    --clothiq-blue-soft-2: #F7F9FF;

    --clothiq-navy: #102A43;
    --clothiq-text: #24364B;
    --clothiq-muted: #6B7C93;
    --clothiq-border: #D9E3F0;
    --clothiq-bg: #F8FAFD;
    --clothiq-white: #FFFFFF;

    --clothiq-success-bg: #EAF8EF;
    --clothiq-success-text: #17652D;
    --clothiq-danger-bg: #FFF0F0;
    --clothiq-danger-text: #A40000;

    --clothiq-shadow: 0 8px 28px rgba(36, 84, 244, .07);
    --clothiq-shadow-hover: 0 16px 36px rgba(36, 84, 244, .13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
    background:
        radial-gradient(
            circle at top right,
            rgba(36, 84, 244, .07),
            transparent 30%
        ),
        var(--clothiq-bg);
    color: var(--clothiq-text);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: var(--clothiq-blue);
}

.clothiq-shell {
    min-height: 100vh;
}


/* =========================================================
   HEADER / BRAND
   ========================================================= */

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

.clothiq-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 22px;
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.clothiq-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

/*
 * Simple hanger-inspired Clothiq mark.
 * Keeps the current HTML untouched.
 */
.clothiq-logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;

    display: grid;
    place-items: center;

    background: var(--clothiq-white);
    border: 1.5px solid var(--clothiq-blue);
    color: transparent;

    position: relative;
    overflow: hidden;
}

.clothiq-logo-mark::before {
    content: "";
    position: absolute;

    width: 22px;
    height: 11px;

    border-left: 3px solid var(--clothiq-blue);
    border-bottom: 3px solid var(--clothiq-blue);

    transform: rotate(-27deg);
    left: 11px;
    top: 20px;
}

.clothiq-logo-mark::after {
    content: "";
    position: absolute;

    width: 9px;
    height: 9px;

    border: 2.5px solid var(--clothiq-blue);
    border-bottom: 0;
    border-left-color: transparent;

    border-radius: 50% 50% 0 0;

    top: 10px;
    left: 20px;

    transform: rotate(10deg);
}

.clothiq-brand-text strong {
    display: block;
    color: var(--clothiq-blue);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .45px;
}

.clothiq-brand-text span {
    display: block;
    color: var(--clothiq-muted);
    font-size: 11.5px;
    margin-top: 2px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.clothiq-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.clothiq-nav a {
    text-decoration: none;

    padding: 10px 14px;
    border-radius: 9px;

    color: var(--clothiq-navy);

    font-size: 14px;
    font-weight: 700;

    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.clothiq-nav a:hover {
    background: var(--clothiq-blue-soft);
    color: var(--clothiq-blue);
}

.clothiq-nav a.active {
    background: var(--clothiq-blue);
    color: var(--clothiq-white);
    box-shadow: 0 5px 14px rgba(36, 84, 244, .18);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.clothiq-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 38px 22px 64px;
}

.clothiq-page-title {
    margin-bottom: 26px;
}

.clothiq-page-title h1 {
    color: var(--clothiq-navy);

    margin: 0 0 8px;

    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
    letter-spacing: -.5px;
}

.clothiq-page-title p {
    color: var(--clothiq-muted);
    margin: 0;
    line-height: 1.55;
}


/* =========================================================
   CARDS
   ========================================================= */

.clothiq-card {
    background: var(--clothiq-white);

    border: 1px solid var(--clothiq-border);
    border-radius: 17px;

    box-shadow: var(--clothiq-shadow);

    padding: 24px;
}

.clothiq-card h2 {
    margin: 0 0 18px;
    color: var(--clothiq-navy);
    font-size: 21px;
}

.clothiq-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(230px, 1fr));

    gap: 18px;
}

.clothiq-action-card {
    display: block;
    text-decoration: none;

    min-height: 190px;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}

.clothiq-action-card:hover {
    transform: translateY(-3px);

    border-color: rgba(36, 84, 244, .32);

    box-shadow: var(--clothiq-shadow-hover);
}

.clothiq-action-icon {
    width: 48px;
    height: 48px;

    border-radius: 14px;

    display: grid;
    place-items: center;

    background: var(--clothiq-blue);
    color: var(--clothiq-white);

    font-weight: 800;
    font-size: 16px;

    margin-bottom: 17px;

    box-shadow: 0 6px 16px rgba(36, 84, 244, .17);
}

.clothiq-action-card h3 {
    color: var(--clothiq-navy);

    margin: 0 0 8px;

    font-size: 17px;
}

.clothiq-action-card p {
    margin: 0;

    color: var(--clothiq-muted);

    line-height: 1.55;
    font-size: 14px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.clothiq-button {
    border: 1px solid var(--clothiq-blue);

    background: var(--clothiq-blue);
    color: var(--clothiq-white);

    border-radius: 10px;

    padding: 11px 18px;

    font: inherit;
    font-weight: 700;
    font-size: 14px;

    cursor: pointer;

    text-decoration: none;
    display: inline-block;

    box-shadow: 0 4px 12px rgba(36, 84, 244, .15);

    transition:
        background .15s ease,
        border-color .15s ease,
        box-shadow .15s ease,
        transform .1s ease;
}

.clothiq-button:hover {
    background: var(--clothiq-blue-hover);
    border-color: var(--clothiq-blue-hover);

    box-shadow: 0 6px 16px rgba(36, 84, 244, .22);
}

.clothiq-button:active {
    transform: translateY(1px);
}

/*
 * White + blue outlined secondary button.
 * Matches the Login/Register style you showed.
 */
.clothiq-button-secondary {
    background: var(--clothiq-white);
    color: var(--clothiq-blue);

    border: 1px solid rgba(36, 84, 244, .35);

    box-shadow: none;
}

.clothiq-button-secondary:hover {
    background: var(--clothiq-blue-soft);
    color: var(--clothiq-blue-dark);
    border-color: var(--clothiq-blue);
    box-shadow: none;
}


/* =========================================================
   FORMS
   ========================================================= */

.clothiq-input,
.clothiq-select,
.clothiq-textarea {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid var(--clothiq-border);
    border-radius: 9px;

    font: inherit;
    font-size: 14px;

    color: var(--clothiq-text);
    background: var(--clothiq-white);

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.clothiq-input:hover,
.clothiq-select:hover,
.clothiq-textarea:hover {
    border-color: #B9C9DC;
}

.clothiq-input:focus,
.clothiq-select:focus,
.clothiq-textarea:focus {
    outline: none;

    border-color: var(--clothiq-blue);

    box-shadow:
        0 0 0 3px rgba(36, 84, 244, .10);
}

.clothiq-input::placeholder,
.clothiq-textarea::placeholder {
    color: #95A2B2;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.clothiq-success {
    background: var(--clothiq-success-bg);
    color: var(--clothiq-success-text);

    border: 1px solid #CBEBD6;

    padding: 12px 15px;
    border-radius: 10px;

    margin-bottom: 18px;
}

.clothiq-error {
    background: var(--clothiq-danger-bg);
    color: var(--clothiq-danger-text);

    border: 1px solid #FFD2D2;

    padding: 12px 15px;
    border-radius: 10px;

    margin-bottom: 18px;
}


/* =========================================================
   TABLES
   ========================================================= */

.clothiq-table-wrap {
    margin-top: 18px;
}

.clothiq-table {
    width: 100%;
    border-collapse: collapse;
}

.clothiq-table th,
.clothiq-table td {
    padding: 12px 9px;

    border-bottom: 1px solid var(--clothiq-border);

    text-align: left;
    vertical-align: middle;
}

.clothiq-table th {
    color: var(--clothiq-muted);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .35px;

    background: var(--clothiq-blue-soft-2);
}

.clothiq-table th:first-child {
    border-radius: 8px 0 0 8px;
}

.clothiq-table th:last-child {
    border-radius: 0 8px 8px 0;
}

.clothiq-table tbody tr {
    transition: background .12s ease;
}

.clothiq-table tbody tr:hover {
    background: #FBFCFF;
}

.clothiq-muted {
    color: var(--clothiq-muted);
}

.clothiq-status-active {
    color: #17652D;
    font-weight: 700;
}

.clothiq-status-inactive {
    color: #A40000;
    font-weight: 700;
}


/* =========================================================
   LOGIN
   ========================================================= */

.clothiq-login-page {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 24px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(36, 84, 244, .13),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(36, 84, 244, .08),
            transparent 30%
        ),
        #F8FAFD;
}

.clothiq-login-card {
    width: min(440px, 100%);

    border-top: 4px solid var(--clothiq-blue);

    box-shadow:
        0 22px 60px rgba(16, 42, 67, .12);
}

.clothiq-login-logo {
    text-align: center;
    margin-bottom: 26px;
}

.clothiq-login-logo .clothiq-logo-mark {
    margin: 0 auto 13px;

    width: 86px;
    height: 86px;

    border-width: 2px;
}

.clothiq-login-logo .clothiq-logo-mark::before {
    width: 39px;
    height: 18px;

    border-left-width: 4px;
    border-bottom-width: 4px;

    left: 21px;
    top: 39px;
}

.clothiq-login-logo .clothiq-logo-mark::after {
    width: 14px;
    height: 14px;

    border-width: 3px;

    top: 20px;
    left: 37px;
}

.clothiq-login-logo h1 {
    color: var(--clothiq-blue);

    margin: 0;

    font-size: 29px;
    font-weight: 800;
    letter-spacing: .5px;
}

.clothiq-login-logo p {
    color: var(--clothiq-muted);

    margin: 5px 0 0;

    font-size: 13px;
}

.clothiq-login-card > h2 {
    color: var(--clothiq-navy);
    margin-bottom: 7px;
}

.clothiq-login-card label {
    display: inline-block;

    color: var(--clothiq-navy);

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 7px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .clothiq-header-inner {
        flex-wrap: wrap;
    }

    .clothiq-nav {
        order: 3;
        width: 100%;

        justify-content: flex-start;

        border-top: 1px solid var(--clothiq-border);

        padding-top: 10px;
    }
}

@media (max-width: 760px) {

    .clothiq-header-inner {
        padding: 12px 14px;
        gap: 12px;
    }

    .clothiq-brand-text strong {
        font-size: 16px;
    }

    .clothiq-brand-text span {
        font-size: 10px;
    }

    .clothiq-logo-mark {
        width: 43px;
        height: 43px;
    }

    .clothiq-main {
        padding: 26px 14px 44px;
    }

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

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

    .clothiq-action-card {
        min-height: auto;
    }

    .clothiq-table {
        min-width: 760px;
    }

    .clothiq-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .clothiq-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .clothiq-nav a {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {

    .clothiq-header-inner > form {
        margin-left: auto;
    }

    .clothiq-brand-text span {
        max-width: 165px;
    }

    .clothiq-page-title h1 {
        font-size: 29px;
    }

    .clothiq-login-page {
        padding: 15px;
    }
}


/* =========================================================
   CLOTHIQ MOBILE-FIRST RESPONSIVE POLISH
   ========================================================= */

/* Brand name is the temporary identity until real logo asset arrives. */
.clothiq-brand {
    min-width: max-content;
}

.clothiq-brand-text strong {
    color: var(--clothiq-blue);
}

.clothiq-action-icon {
    font-size: 20px;
    line-height: 1;
}


/* Tablet */
@media (max-width: 900px) {

    .clothiq-header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px 16px;
    }

    .clothiq-brand {
        min-width: 0;
    }

    .clothiq-nav {
        grid-column: 1 / -1;
        order: initial;

        width: 100%;

        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));

        gap: 8px;

        border-top: 1px solid var(--clothiq-border);
        padding-top: 11px;

        overflow: visible;
    }

    .clothiq-nav a {
        text-align: center;
        white-space: normal;
    }

    .clothiq-header-inner > form {
        justify-self: end;
    }
}


/* Mobile */
@media (max-width: 640px) {

    body {
        background: var(--clothiq-bg);
    }

    .clothiq-header {
        position: sticky;
        top: 0;
    }

    .clothiq-header-inner {
        padding: 11px 14px 12px;

        grid-template-columns: minmax(0, 1fr) auto;

        gap: 10px 12px;
    }

    .clothiq-brand-text strong {
        font-size: 16px;
        line-height: 1.15;
    }

    .clothiq-brand-text span {
        font-size: 10px;
        line-height: 1.25;

        max-width: 180px;
    }

    /*
     * No horizontal navigation scrollbar.
     * Four current items become a clean 2 × 2 grid.
     */
    .clothiq-nav {
        grid-column: 1 / -1;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        width: 100%;

        gap: 8px;

        padding-top: 10px;

        overflow: visible;
    }

    .clothiq-nav a {
        width: 100%;

        padding: 10px 8px;

        text-align: center;

        border: 1px solid var(--clothiq-border);

        border-radius: 10px;

        font-size: 12px;

        white-space: normal;
    }

    .clothiq-nav a.active {
        border-color: var(--clothiq-blue);

        background: var(--clothiq-blue);
        color: var(--clothiq-white);
    }

    .clothiq-header-inner > form {
        margin: 0;
    }

    .clothiq-header-inner > form .clothiq-button {
        padding: 9px 12px;
        font-size: 12px;
    }

    .clothiq-main {
        width: 100%;

        padding: 24px 14px 40px;
    }

    .clothiq-page-title {
        margin-bottom: 20px;
    }

    .clothiq-page-title h1 {
        font-size: 28px;
        line-height: 1.15;
    }

    .clothiq-page-title p {
        font-size: 14px;
    }

    .clothiq-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .clothiq-card {
        width: 100%;

        padding: 18px;

        border-radius: 14px;
    }

    .clothiq-action-card {
        min-height: 0;
    }

    .clothiq-action-icon {
        width: 46px;
        height: 46px;

        font-size: 20px;

        margin-bottom: 14px;
    }

    .clothiq-action-card h3 {
        font-size: 16px;
    }

    .clothiq-action-card p {
        font-size: 14px;
    }

    /*
     * Create/edit forms stack correctly rather than becoming tiny columns.
     */
    .clothiq-card > form.clothiq-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .clothiq-input,
    .clothiq-select,
    .clothiq-textarea,
    .clothiq-button {
        min-height: 44px;
    }

    /*
     * Data tables are the only area allowed to scroll sideways.
     * Navigation itself never requires sideways scrolling.
     */
    .clothiq-table-wrap {
        width: 100%;

        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;

        border-radius: 10px;
    }

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

    .clothiq-login-page {
        padding: 14px;
    }

    .clothiq-login-card {
        width: 100%;

        padding: 22px 18px;
    }

    .clothiq-login-logo {
        margin-bottom: 21px;
    }

    .clothiq-login-logo h1 {
        font-size: 25px;
    }
}


/* Very small phones */
@media (max-width: 380px) {

    .clothiq-brand-text span {
        display: none;
    }

    .clothiq-nav a {
        font-size: 11px;
        padding: 9px 6px;
    }

    .clothiq-page-title h1 {
        font-size: 25px;
    }
}
