/* ═══════════════════════════════════════════════════════
   K.A.S. Export System — Style Sheet
   export.kasgroupbd.com · css/style.css
   Matches kasgroupbd.com design language
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Font Rule ──
   Cormorant Garamond : headings & display text only (h1, h2, h3, .brand, blockquote)
   DM Sans            : everything else (buttons, labels, inputs, tables, nav, alerts)
   Never use Cormorant below 22px — it renders soft on Windows ClearType.
───────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Design Tokens — identical to kasgroupbd.com ── */
:root {
    --ink:      #0f0f0f;
    --paper:    #f5f0e8;
    --white:    #ffffff;
    --gold:     #b8952a;
    --gold2:    #d4af5a;
    --gold-bg:  rgba(184, 149, 42, 0.07);
    --muted:    #6b6356;
    --line:     rgba(184, 149, 42, 0.25);
    --danger:   #9b1c1c;
    --danger2:  #DC143C;
    --warn:     #7c4a00;
    --success:  #1a5c35;
    --shadow-sm: 0 2px 12px rgba(15,15,15,0.07);
    --shadow-md: 0 8px 32px rgba(15,15,15,0.10);
    --shadow-lg: 0 20px 50px rgba(15,15,15,0.12);
    --radius:   2px;  /* sharp corners — editorial feel */
}

html { scroll-behavior: smooth; }

/* ── Base ── */
body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Noise texture (matches homepage) ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ── Top Gold Rule (same as homepage) ── */
.top-rule {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold2), var(--gold), transparent);
    position: relative;
    z-index: 10;
}

/* ══════════════════════════════════════
   HEADER BLOCK  (replaces wave section)
   ══════════════════════════════════════ */
.head_block_section {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: clamp(36px, 4vw, 60px) 20px clamp(28px, 3vw, 44px);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    overflow: hidden;
}

/* subtle radial glow behind text */
.head_block_section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(184,149,42,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.head_block {
    position: relative;
    z-index: 2;
}

/* system tag above name */
.head_block_section .system-tag {
    display: inline-block;
    font-size: clamp(10px, 0.85vw, 13px);
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    animation: fadeUp 0.7s ease 0.1s both;
}

.main_name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.5px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeUp 0.8s ease 0.25s both;

    /* remove old gradient text — use ink colour for legibility */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    filter: none;
}

.main_name img {
    width: clamp(32px, 3.5vw, 50px);
    height: auto;
    opacity: 0.9;
}

.main_name em {
    font-style: italic;
    color: var(--gold);
}

/* sub-label below name */
.head_block_section .head-sub {
    font-size: clamp(11px, 0.95vw, 14px);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px;
    font-weight: 300;
    animation: fadeUp 0.8s ease 0.4s both;
}

/* Remove wave layers — not needed in new design */
.air { display: none; }

/* ══════════════════════════════════════
   NAVIGATION BAR (navuser.php)
   ══════════════════════════════════════ */
nav, .navbar, #navbar, .nav-bar {
    position: relative;
    z-index: 5;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0 32px;
    display: flex;
    align-items: center;
    gap: 4px;
}

nav a, .navbar a, .nav-bar a {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 14px 16px;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

nav a:hover, .navbar a:hover, .nav-bar a:hover,
nav a.active, .navbar a.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ══════════════════════════════════════
   ALERT BOXES
   ══════════════════════════════════════ */
.alert-box {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    margin: 0 0 2px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-left: 4px solid rgba(255,255,255,0.5);
}

/* danger (red) variant */
.alert-box[style*="DC143C"],
.alert-box[style*="red"] {
    background: linear-gradient(90deg, #7b0f0f, #9b1c1c) !important;
    color: #fff;
    border-left-color: var(--gold2);
}

/* warning (orange) variant */
.alert-box[style*="FF2400"] {
    background: linear-gradient(90deg, #7c2d00, #a33a00) !important;
    color: #fff;
    border-left-color: var(--gold2);
}

.alert-box a {
    color: var(--gold2);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(212,175,90,0.4);
    transition: border-color 0.2s ease;
    white-space: nowrap;
}

.alert-box a:hover {
    border-bottom-color: var(--gold2);
}

/* ══════════════════════════════════════
   MAIN CONTAINER
   ══════════════════════════════════════ */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px 60px;
}

.container > h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    letter-spacing: -0.3px;
}

/* section divider label */
.section-tag {
    display: block;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 500;
}

/* ══════════════════════════════════════
   FORM SECTIONS (cards)
   ══════════════════════════════════════ */
.form-section {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    padding: clamp(24px, 3vw, 40px) clamp(20px, 2.5vw, 36px);
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-section:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(184,149,42,0.4);
}

.form-section:hover::before {
    opacity: 1;
}

.form-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.form-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 2vw, 28px);  /* min 22px — safe for Cormorant on all screens */
    font-weight: 400;
    color: var(--ink);
    margin: 20px 0 14px;
}

.form-group {
    margin-bottom: 16px;
}

/* ══════════════════════════════════════
   LABELS
   ══════════════════════════════════════ */
label {
    display: block;
    font-family: 'DM Sans', sans-serif;  /* explicit — never inherit Cormorant */
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

/* ══════════════════════════════════════
   INPUTS & FILE PICKERS
   ══════════════════════════════════════ */
input[type="text"],
input[type="file"] {
    display: block;
    padding: 10px 14px;
    margin: 4px 0 12px;
    width: 100%;
    max-width: 420px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;  /* explicit — crisp at all sizes */
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="file"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,149,42,0.12);
}

/* ══════════════════════════════════════
   DROPDOWNS (SELECT)
   ══════════════════════════════════════ */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    display: block;
    width: 100%;
    max-width: 480px;
    padding: 11px 44px 11px 14px;
    margin: 4px 0 14px;

    background-color: var(--paper);
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23b8952a' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;

    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: 'DM Sans', sans-serif;  /* explicit — never inherit Cormorant */
    font-size: 14px;
    font-weight: 400;
    color: var(--ink);
    cursor: pointer;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-sm);
}

select:hover {
    border-color: var(--gold2);
}

select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,149,42,0.12);
}

select option {
    background: var(--white);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
}

/* ══════════════════════════════════════
   BUTTON GROUPS (UD actions)
   ══════════════════════════════════════ */
.udButtonGroup1,
.udButtonGroup2 {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gold-bg);
    border: 1px solid var(--line);
    margin: 8px 8px 8px 0;
}

/* ══════════════════════════════════════
   BUTTONS — Base
   ══════════════════════════════════════ */
button,
form button {
    font-family: 'DM Sans', sans-serif;  /* explicit — crisp at all sizes */
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    border: none;
    padding: 11px 20px;
    margin: 4px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

button::after,
form button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s ease;
}

button:hover::after,
form button:hover::after {
    background: rgba(255,255,255,0.08);
}

button:hover,
form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button:active,
form button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ── View / Display group (ink theme) ── */
.btn-display,
.btn-stock,
.btn-status {
    background: linear-gradient(135deg, var(--ink) 0%, #2a2a2a 100%);
}

.btn-display:hover,
.btn-stock:hover,
.btn-status:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, var(--ink) 100%);
}

/* ── Edit / Create / Delete group (gold theme) ── */
.btn-create,
.btn-edit,
.btn-delete {
    background: linear-gradient(135deg, var(--gold) 0%, #8a6e1a 100%);
}

.btn-create:hover,
.btn-edit:hover,
.btn-delete:hover {
    background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
}

/* ── Normal utility button ── */
.btn-norm,
button.btn-norm,
a.btn-norm {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, #8a6e1a 100%);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    border: none;
    padding: 11px 20px;
    margin: 4px;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.btn-norm:hover,
button.btn-norm:hover,
a.btn-norm:hover {
    background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ── Link Buttons (anchor styled as pill buttons) ── */
a.button {
    display: inline-block;
    padding: 11px 18px;
    margin: 5px 4px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

a.button::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

a.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold2);
    color: var(--gold);
}

a.button:hover::before {
    transform: scaleX(1);
}

a.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════
   PRC UPLOAD BOX
   ══════════════════════════════════════ */
#togglePrcUpload,
#prcUploadBox {
    max-width: 580px;
    width: 100%;
    margin: 16px auto 0;
    display: block;
}

#prcUploadBox {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}

#prcUploadBox h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 14px;
    color: var(--ink);
}

#prcUploadBox code {
    display: inline-block;
    background: var(--gold-bg);
    border: 1px solid var(--line);
    padding: 4px 10px;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.3px;
    border-radius: var(--radius);
}

/* ══════════════════════════════════════
   UD DETAILS PANEL
   ══════════════════════════════════════ */
#udDetails {
    background: var(--gold-bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    padding: 14px 18px;
    margin-top: 16px;
    font-family: 'DM Sans', sans-serif;  /* explicit — functional panel */
    font-size: 14px;
    color: var(--ink);
    border-radius: var(--radius);
}

#udDetails strong {
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════
   DATA TABLES
   ══════════════════════════════════════ */

/* ── Scroll container ── */
.data-table,
.container table,
.admin-section table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 100%;
}

/* ── Table wrap — needed for the glass overlay positioning ── */
.table-wrap {
    position: relative;
    display: block;
}

/* ── Glass wall effect ──
   Solid semi-transparent panel — like the glass wall of a fish tank / pond border.
   No fade, no gradient. Data is fully visible through it but clearly behind glass.
   The border is the crisp glass edge. Disappears when scrolled to end. */
.table-glass-overlay {
    position: absolute;
    top: 0; right: 0;
    width: 48px;
    height: 100%;
    background: rgba(147, 197, 253, 0.22);          /* cool blue glass tint */
    border-left: 2px solid rgba(147, 197, 253, 0.6); /* crisp glass edge */
    box-shadow: inset -2px 0 12px rgba(147, 197, 253, 0.12); /* inner glass depth */
    pointer-events: none;
    z-index: 6;
    transition: opacity 0.25s ease;
}

/* Hide when fully scrolled */
.table-wrap.scrolled-end .table-glass-overlay {
    opacity: 0;
}

/* ── Column borders — makes it clear columns continue off-screen ── */
.data-table td,
.data-table th,
.container table td,
.container table th {
    border-right: 1px solid rgba(184,149,42,0.18);
    border-bottom: 1px solid rgba(184,149,42,0.12);
    white-space: nowrap; /* prevent text wrapping — keeps rows single-line */
}

.data-table td:last-child,
.data-table th:last-child,
.container table td:last-child,
.container table th:last-child {
    border-right: none; /* no double border on last column */
}

/* ── Sticky first column — glass wall on the left ── */
.data-table td:first-child,
.data-table th:first-child,
.container table td:first-child,
.container table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: rgba(219, 234, 254, 0.75);           /* blue glass tint — left wall */
    border-right: 2px solid rgba(147, 197, 253, 0.6); /* crisp glass edge */
    box-shadow: 2px 0 12px rgba(147, 197, 253, 0.12); /* glass depth */
}

/* ── Header row — glass ceiling ── */
.data-table th,
.container table th {
    background: rgba(147, 197, 253, 0.28);            /* slightly deeper blue — ceiling */
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 12px;
    text-align: left;
    border-bottom: 2px solid rgba(147, 197, 253, 0.6); /* glass bottom edge */
    white-space: nowrap;
    box-shadow: none;
}

/* ── Header first cell — left wall meets ceiling ── */
.data-table th:first-child,
.container table th:first-child {
    background: rgba(147, 197, 253, 0.42);            /* deepest blue — corner joint */
    z-index: 3;
}

/* ── Right shadow on sticky column — signals more content to the right ── */
.data-table td:first-child::after,
.data-table th:first-child::after,
.container table td:first-child::after,
.container table th:first-child::after {
    content: '';
    position: absolute;
    top: 0; right: -8px;
    width: 8px; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.06), transparent);
    pointer-events: none;
}
.data-section {
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--ink);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: rgba(147, 197, 253, 0.28);   /* blue glass ceiling */
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid rgba(147, 197, 253, 0.6);
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: none;
    white-space: nowrap;
}

.data-table td {
    border-bottom: 1px solid rgba(184,149,42,0.12);
    padding: 10px 14px;
    font-family: 'DM Sans', sans-serif;  /* explicit — never inherit Cormorant */
    font-size: 14px;
    color: var(--ink);
    vertical-align: middle;
}

.data-table tr:nth-child(even) td {
    background: rgba(245,240,232,0.5);
}

.data-table tr:hover td {
    background: var(--gold-bg);
    cursor: default;
}

/* ══════════════════════════════════════
   BUTTON GROUP (tab-style switchers)
   ══════════════════════════════════════ */
.button-group {
    display: flex;
    gap: 6px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.button-group button {
    flex: 1;
    min-width: 100px;
    font-family: 'DM Sans', sans-serif;  /* Cormorant goes blurry at tab sizes */
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    background: var(--white);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: none;
    transition: all 0.25s ease;
}

.button-group button:hover {
    background: var(--gold-bg);
    border-color: var(--gold2);
    color: var(--ink);
    transform: none;
    box-shadow: var(--shadow-sm);
}

.button-group button.active {
    background: var(--ink);
    color: var(--gold2);
    border-color: var(--ink);
    font-weight: 700;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════
   MISC HELPERS
   ══════════════════════════════════════ */
.hidden { display: none; }

.marked-for-delete {
    text-decoration: line-through;
    opacity: 0.5;
}

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 20px 0;
}

code {
    font-size: 13px;
    color: var(--gold);
    background: var(--gold-bg);
    padding: 2px 6px;
    border-radius: var(--radius);
}

h1, h2, h3 {
    color: var(--ink);
}

/* ── Gold divider (reusable) ── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.divider-diamond {
    width: 7px; height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .container { padding: 0 14px 40px; }

    .udButtonGroup1,
    .udButtonGroup2 {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin: 8px 0;
    }

    select,
    input[type="text"],
    input[type="file"] {
        max-width: 100%;
    }

    /* Stacked table on mobile */
    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr { display: block; }

    .data-table thead { display: none; }

    .data-table tr {
        margin-bottom: 14px;
        border: 1px solid var(--line);
        padding: 10px;
        background: var(--white);
        border-left: 3px solid var(--gold);
    }

    .data-table td {
        border: none;
        position: relative;
        padding: 6px 10px 6px 48%;
        white-space: normal;
        text-align: left;
    }

    .data-table td::before {
        position: absolute;
        top: 6px;
        left: 10px;
        width: 44%;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--muted);
        content: attr(data-label);
    }

    .prc-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        max-width: 580px;
        margin: 16px auto 0;
    }

    .prc-arrow {
        display: inline-block;
        transition: transform 0.25s ease;
        font-size: 18px;
    }

    .prc-toggle-btn.is-open .prc-arrow {
        transform: rotate(180deg);
    }
}