:root {
    --ict-bg: #f6f7fb;
    --ict-card-bg: #ffffff;
    --ict-border: #dde3ea;
    --ict-text: #1f2430;
    --ict-muted: #6f7a8a;
    --ict-accent: #51cea0;
    --ict-accent-soft: rgba(81, 206, 160, 0.08);
    --ict-radius-lg: 16px;
    --ict-radius-md: 10px;
    --ict-radius-pill: 999px;
    --ict-shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* ===== POTIONS BOUTIQUE (Not Updated) ===== */
/* Potions Calendar */
body {
    font-family: Arial, sans-serif;
    background: #f9f7f3;
    color: #333;
    padding: 20px;
}

.calendar-container {
    max-width: 900px;
    margin: auto;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 6px;
    position: relative;
    text-align: center;
    min-height: 160px;
}

.day-number {
    position: absolute;
    top: 6px;
    left: 8px;
    font-weight: bold;
    font-size: 0.85em;
    color: #444;
}

.item-name {
    font-weight: bold;
    margin-top: 20px;
    font-size: 0.9em;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 6px 0;
}

.dukka-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.dukka-icon {
    width: 18px;
    height: 18px;
}

.dukka-amount {
    font-weight: bold;
    color: #6a422a;
    font-size: 0.9em;
}

/* ===== ITEM CHANGES ===== */
.ict-wrapper {
    background: var(--ict-bg);
    border-radius: var(--ict-radius-lg);
    padding: 1.5rem 1.75rem 2rem;
    box-shadow: var(--ict-shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.3);
    max-width: 750px;
    margin: 0 auto 3rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    color: var(--ict-text);
}

.ict-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ict-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 0.25rem;
}

.ict-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ict-muted);
}

.ict-stats {
    font-size: 0.85rem;
    color: var(--ict-muted);
    padding: 0.35rem 0.9rem;
    border-radius: var(--ict-radius-pill);
    background: var(--ict-accent-soft);
    border: 1px solid rgba(81, 206, 160, 0.4);
}

/* Controls */
.ict-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ict-controls-row {
    display: grid;
    gap: 0.75rem;
    align-items: flex-end;
}

.ict-controls-row--top {
    grid-template-columns: minmax(0, 1.6fr) auto;
}

.ict-controls-row--bottom {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ict-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ict-control-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ict-muted);
}

.ict-control-group input[type="text"],
.ict-control-group select {
    border-radius: var(--ict-radius-md);
    border: 1px solid var(--ict-border);
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
    outline: none;
    background: #ffffff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease,
        background 0.16s ease;
}

.ict-control-group input[type="text"]:focus,
.ict-control-group select:focus {
    border-color: var(--ict-accent);
    box-shadow: 0 0 0 1px rgba(81, 206, 160, 0.35);
}

.ict-control-small select {
    padding-right: 1.75rem;
}

.ict-toggle-wrapper {
    display: inline-flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: flex-end;
}

.ict-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--ict-muted);
    cursor: pointer;
    white-space: nowrap;
}

.ict-checkbox input {
    width: 15px;
    height: 15px;
}

/* Grid & Cards */
.ict-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ict-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--ict-radius-md);
    background: var(--ict-card-bg);
    border: 1px solid var(--ict-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.ict-thumb-wrapper {
    width: 80px;
    min-width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ict-thumb-wrapper img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    image-rendering: pixelated;
}

/* Card body */
.ict-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ict-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.ict-name-block {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.ict-item-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.ict-previous-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ict-muted);
}

/* Change type pill */
.ict-pill--change {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(129, 140, 248, 0.08);
    color: #312e81;
}

.ict-change-date {
    font-size: 0.75rem;
    color: var(--ict-muted);
}

.ict-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.ict-pill {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--ict-radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #f9fafb;
    color: var(--ict-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ict-pill--origin {
    border-color: rgba(81, 206, 160, 0.6);
    background: var(--ict-accent-soft);
    color: #115e43;
}

.ict-pill-label {
    font-weight: 600;
    margin-right: 0.2rem;
}

.ict-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

.ict-categories-column {
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px dashed rgba(148, 163, 184, 0.8);
}

.ict-categories-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ict-muted);
    margin-bottom: 0.1rem;
}

.ict-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    margin: 0.1rem 0.2rem 0 0;
    border-radius: var(--ict-radius-pill);
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.72rem;
}

.ict-mystery-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    background: #fef9c3;
    border: 1px solid #facc15;
    font-size: 0.78rem;
}

.ict-mystery-thumb {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    overflow: hidden;
    background: #fefce8;
    border: 1px solid rgba(234, 179, 8, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ict-mystery-thumb img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.ict-mystery-text strong {
    font-weight: 700;
}

.ict-art-updates {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.5rem;
    margin-top: 0.45rem;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.7);
}

.ict-art-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ict-muted);
}

.ict-art-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ict-art-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.ict-art-thumb img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #f9fafb;
}

.ict-art-caption {
    font-size: 0.7rem;
    color: var(--ict-muted);
}

.ict-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--ict-muted);
    font-size: 0.9rem;
}

.ict-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0;
    font-size: 0.8rem;
    color: var(--ict-muted);
}

.ict-page-info {
    font-size: 0.78rem;
}

.ict-page-controls {
    display: inline-flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.ict-page-btn {
    min-width: 28px;
    padding: 0.2rem 0.55rem;
    border-radius: var(--ict-radius-pill);
    border: 1px solid var(--ict-border);
    background: #ffffff;
    cursor: pointer;
    font-size: 0.78rem;
    transition: background 0.16s ease, border-color 0.16s ease,
        color 0.16s ease, transform 0.06s ease;
}

.ict-page-btn:hover {
    border-color: var(--ict-accent);
    transform: translateY(-1px);
}

.ict-page-btn--active {
    background: var(--ict-accent);
    border-color: var(--ict-accent);
    color: #ffffff;
}

.ict-page-btn[disabled] {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

/* Responsive */
@media (max-width: 900px) {
    .ict-controls-row--top {
        grid-template-columns: 1fr;
    }

    .ict-toggle-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ict-controls-row--bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ict-wrapper {
        padding: 1.25rem 1rem 1.5rem;
    }

    .ict-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ict-controls-row--bottom {
        grid-template-columns: 1fr;
    }

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

    .ict-thumb-wrapper {
        margin: 0 auto;
    }

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