:root{
    --page: #eef1f4;
    --surface: #f5f7f9;
    --card: #ffffff;

    --text: #111827;
    --muted: #6b7280;
    --placeholder-text: rgba(107, 114, 128, 0.75);

    --stroke: #d0d5dd;
    --stroke-2: #e6ebf2;
    --stroke-hover: #c5cbd6;

    --shadow: 0 10px 30px rgba(16,24,40,.08);

    --radius-lg: 16px;
    --radius-md: 12px;

    --green: #28a745;
    --success: #2e7d32;

    --focus: rgba(45, 125, 50, 0.22);
    --focus-stroke: #2e7d32;
    --focus-stroke-outer: rgba(46,125,50,.08);

    --danger: #b42318;
    --danger-soft: rgba(180, 35, 24, 0.12);

    --btn-green-top: #C9FFC9;      /* lighter top */
    --btn-green-middle: #B9F6B9;
    --btn-green-bottom: #8FE48F;   /* slightly deeper bottom */
    --btn-green-bottom-2: #7FD47F;
    --btn-green-border: #4F9A4F;   /* medium strength border */
    --btn-green-text: #1F3D1F;     /* deep green text (not black) */
    --btn-green-hover-top: #98DD98;
    --btn-green-hover-bottom: #6FCB6F;
    --btn-green-active-top: #89D489;
    --btn-green-active-bottom: #5FBD5F;
    --btn-green-focus: #BFEFBF;

    --btn-ghost-text: #1f2937;
    --btn-ghost-stroke: #d0d5dd;
    --btn-ghost-background: rgba(255, 255, 255, 0.6);

    --basic-bg:    #f5c8c899;  /* soft red */
    --standard-bg: #bfc7ff77;  /* soft blue */
    --premium-bg: #F3ECD4; /* soft gold */

    --basic-stroke: #f5c8c8bb;
    --standard-stroke: #bfc7ff;
    --premium-stroke: #e3dCc4;

    --basic-shadow: #f5c8c899;
    --standard-shadow: #bfc7ff77;
    --premium-shadow: #f3ecb4;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--page);
    color: var(--text);
}

/* --- Buttons --- */
.cookn-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 14px;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 650;
    line-height: 1.7;
    font-size: 14px !important;
    cursor: pointer;
    transition: transform 120ms
    ease, box-shadow 120ms
    ease, background 120ms
    ease, border-color 120ms
    ease;
}

.cookn-btn--ghost {
    background: var(--btn-ghost-background);
    border-color: var(--btn-ghost-stroke);
    color: var(--btn-ghost-text);
}

.cookn-btn:hover{
    border-color: rgba(17,24,39,.25);
    box-shadow: 0 10px 24px rgba(16,24,40,.10);
    transform: translateY(-1px);
}

.cookn-btn:focus{
    outline: none;
    box-shadow: 0 0 0 4px var(--focus), 0 10px 24px rgba(16,24,40,.12);
}

.cookn-btn:disabled{
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cookn-btn--success{
    border-color: rgba(46,125,50,.30);
    background: linear-gradient(180deg, rgba(46,125,50,.20), rgba(46,125,50,.08));
    color: #0b3d0f;
}

.cookn-btn--green {
    color: var(--btn-green-text);

    background: linear-gradient(
            to bottom,
            var(--btn-green-top),
            var(--btn-green-bottom)
    );

    border: 1px solid var(--btn-green-border);

    /*box-shadow: 0 4px 10px #E6E6E6;*/

    transition: all 160ms ease;
    cursor: pointer;
}

.cookn-btn--green:hover {
    background: linear-gradient(
            to bottom,
            var(--btn-green-hover-top),
            var(--btn-green-hover-bottom)
    );
    box-shadow: 0 10px 24px rgba(16,24,40,.10);
    transform: translateY(-1px);
}

.cookn-btn--green:active {
    background: linear-gradient(
            to bottom,
            var(--btn-green-active-top),
            var(--btn-green-active-bottom)
    );
}

.cookn-btn--green:focus-visible {
    outline: 3px solid var(--btn-green-focus);
    outline-offset: 2px;
}
/* --- END Buttons --- */

/* --- Card Surface (container) --- */
.card-surface {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-surface__header {
    padding: 18px 20px 10px;
}

.card-surface__title {
    margin: 0;
    letter-spacing: 0.01em;
    font-weight: 650;
    font-size: 28px;
}

.card-surface__subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.45;
    max-width: 78ch;
}

.card-surface__description {
    font-size: 20px;
}

.card-surface__body {
    padding: 16px 20px 20px;
}

.card-surface--shimmery {
    background: linear-gradient(
            110deg,
            transparent 0%,
            transparent 20%,
            #ececec 40%,
            #f5f5f5 50%,
            #ececec 60%,
            transparent 80%,
            transparent 100%
    );
    background-size: 200% 100%; /* Makes the gradient wider than the container */
    animation: shimmer 2s linear infinite;
    z-index: 1;

    border-radius: var(--radius-lg);
    border: 1px solid #d7dbe0;
    box-shadow:
            0 20px 45px rgba(0,0,0,0.08),
            inset 0 1px 0 rgba(255,255,255,0.85),
            inset 0 -1px 0 rgba(0,0,0,0.05);
}

@keyframes shimmer {
    0% {
        background-position-x: 100%; /* Start the wide gradient off-screen to the right */
    }
    100% {
        background-position-x: -100%; /* End the wide gradient off-screen to the left */
    }
}

@media(max-width: 700px) {
    .card-surface--shimmery {
        background: linear-gradient(
                100deg,
                transparent 0%,
                transparent 30%,
                #ececec 42%,
                #f5f5f5 50%,
                #ececec 58%,
                transparent 70%,
                transparent 100%
        );

        background-size: 200% 100%; /* Makes the gradient wider than the container */
        animation: shimmer 2s linear infinite;
        z-index: 1;
    }
}

/* --- END Card Surface (container) --- */


/* --- Card --- */
.card--flat {
    padding: 14px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    background: #fff;
}
/* --- END Card --- */