/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gold */
    --gold: #C9A227;
    --gold-light: #F2E2A0;
    --gold-dark: #9A7B1A;
    --gold-gradient: linear-gradient(135deg, #B8941F, #E8CC5A, #C9A227);
    --gold-glow: 0 0 24px rgba(201, 162, 39, 0.25);
    /* Silver */
    --silver: #B0B3B8;
    --silver-light: #D9DBDF;
    --silver-dark: #7A7D82;
    --silver-gradient: linear-gradient(135deg, #9EA1A6, #D4D6DA, #B0B3B8);
    /* Navy Blue */
    --navy: #0A1628;
    --navy-light: #132240;
    --navy-mid: #0E1B33;
    --blue: #1E3A5F;
    --blue-accent: #2C5282;
    --blue-glow: 0 0 30px rgba(44, 82, 130, 0.2);
    /* White tones */
    --white: #FFFFFF;
    --white-90: rgba(255, 255, 255, 0.9);
    --white-70: rgba(255, 255, 255, 0.7);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-20: rgba(255, 255, 255, 0.2);
    --white-10: rgba(255, 255, 255, 0.1);
    --white-05: rgba(255, 255, 255, 0.05);
    /* UI */
    --bg-dark: var(--navy);
    --bg-card: var(--navy-light);
    --bg-card-hover: rgba(30, 58, 95, 0.4);
    --text-primary: var(--white-90);
    --text-secondary: var(--white-70);
    --text-muted: var(--white-50);
    --border: var(--white-10);
    --border-gold: rgba(201, 162, 39, 0.25);
    --success: #10B981;
    --danger: #EF4444;
    --line-green: #06C755;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 4px 30px rgba(201, 162, 39, 0.15);
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--navy);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 15% 10%, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(44, 82, 130, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(19, 34, 64, 0.5) 0%, transparent 80%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ===== Header ===== */
header {
    background: rgba(10, 22, 40, 0.92);
    border-bottom: 1px solid var(--border-gold);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-sm {
    width: 40px;
    height: 40px;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: 1.5px;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.pulse {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.last-update {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== LINE Button (Header) ===== */
/* Facebook Button */
.fb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #1877F2;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(24, 119, 242, 0.3);
}

.fb-btn:hover {
    background: #1565D8;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(24, 119, 242, 0.4);
}

.fb-btn svg {
    flex-shrink: 0;
}

.line-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--line-green);
    color: #FFFFFF;
    border: none;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(6, 199, 85, 0.3);
}

.line-btn:hover {
    background: #05B34C;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
}

.line-btn svg {
    flex-shrink: 0;
}

/* ===== Floating LINE Button ===== */
.floating-line {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--line-green);
    color: #FFFFFF;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    z-index: 999;
    box-shadow: 0 4px 24px rgba(6, 199, 85, 0.4), 0 0 0 4px rgba(6, 199, 85, 0.1);
    transition: all 0.3s ease;
    animation: floatBounce 3s ease-in-out infinite;
}

.floating-line:hover {
    background: #05B34C;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 32px rgba(6, 199, 85, 0.5), 0 0 0 6px rgba(6, 199, 85, 0.15);
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.admin-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 162, 39, 0.05);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 10, 20, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal {
    background: var(--navy-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--white-10);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(201, 162, 39, 0.05);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--white-05);
    background: rgba(201, 162, 39, 0.03);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--white);
}

.modal-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--navy);
    border: 1px solid var(--white-10);
    border-radius: 10px;
    color: var(--white);
    font-size: 16px;
    font-family: 'Prompt', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--gold-gradient);
    color: var(--navy);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    transition: all 0.3s;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.error-text {
    color: var(--danger);
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
}

.success-text {
    color: var(--success);
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
}

/* ===== Admin Panel ===== */
.admin-panel {
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid var(--white-05);
    padding: 30px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gold);
}

.btn-logout {
    padding: 8px 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.admin-card {
    background: var(--navy-mid);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--white-05);
    transition: all 0.3s;
}

.admin-card:hover {
    border-color: var(--white-10);
}

.admin-card.gold,
.admin-card.gold-scrap {
    border-top: 3px solid var(--gold);
}

.admin-card.silver,
.admin-card.silver-craft {
    border-top: 3px solid var(--silver);
}

.admin-card h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.admin-input-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.admin-input-group input {
    width: 100%;
    padding: 10px 14px;
    background: var(--navy);
    border: 1px solid var(--white-10);
    border-radius: 10px;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.admin-input-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.btn-save {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
    padding: 14px;
    background: var(--gold-gradient);
    color: var(--navy);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    transition: all 0.3s;
    box-shadow: var(--shadow-gold);
}

.btn-save:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(201, 162, 39, 0.25);
}

/* ===== Service Banner ===== */
.service-banner {
    background: linear-gradient(135deg, var(--navy-light), var(--blue));
    border-bottom: 1px solid var(--border-gold);
    padding: 14px 0;
}

.service-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 500;
}

.service-icon {
    font-size: 18px;
}

.service-divider {
    width: 1px;
    height: 20px;
    background: var(--white-20);
}

@media (max-width: 480px) {
    .service-items {
        gap: 12px;
    }
    .service-item {
        font-size: 12px;
    }
    .service-divider {
        display: none;
    }
}

/* ===== Price Banner ===== */
.price-banner {
    padding: 60px 0 50px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.price-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(201, 162, 39, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.price-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
    letter-spacing: 0.2px;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.price-card {
    background: linear-gradient(145deg, rgba(19, 34, 64, 0.9) 0%, rgba(14, 27, 51, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--white-05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.price-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.price-card.gold-card::before,
.price-card.gold-scrap-card::before {
    background: var(--gold-gradient);
}

.price-card.gold-card::after,
.price-card.gold-scrap-card::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
}

.price-card.silver-card::before,
.price-card.silver-craft-card::before {
    background: var(--silver-gradient);
}

.price-card.silver-card::after,
.price-card.silver-craft-card::after {
    background: radial-gradient(ellipse at 50% 0%, rgba(176, 179, 184, 0.06) 0%, transparent 60%);
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 162, 39, 0.05);
    border-color: var(--white-10);
}

.price-card:hover::after {
    opacity: 1;
}

/* Image for price cards */
.price-img {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    overflow: hidden;
}

.price-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s ease;
}

.price-card:hover .price-img img {
    transform: scale(1.1);
}

.price-card h3 {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 14px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2px;
}

.price-value {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -1.5px;
}

.gold-card .price-value,
.gold-scrap-card .price-value {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.silver-card .price-value,
.silver-craft-card .price-value {
    color: var(--white);
}

.price-unit {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ===== Calculator Section ===== */
.calculator-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy-mid) 100%);
    position: relative;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--white-10), transparent);
}

.calc-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.calc-tab {
    padding: 12px 22px;
    background: rgba(19, 34, 64, 0.6);
    border: 1px solid var(--white-05);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.calc-tab:hover {
    border-color: var(--border-gold);
    color: var(--text-primary);
    background: rgba(30, 58, 95, 0.5);
}

.calc-tab.active {
    background: rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.4);
    color: var(--gold);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.06);
}

.tab-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.gold-icon { background: var(--gold); box-shadow: 0 0 8px rgba(201, 162, 39, 0.4); }
.gold-scrap-icon { background: var(--gold-dark); }
.silver-icon { background: var(--silver); box-shadow: 0 0 8px rgba(176, 179, 184, 0.4); }
.silver-craft-icon { background: var(--silver-dark); }

.calc-form {
    background: linear-gradient(145deg, rgba(19, 34, 64, 0.8) 0%, rgba(14, 27, 51, 0.9) 100%);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--white-05);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.calc-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.3), transparent);
}

.calc-info {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--white-05);
    flex-wrap: wrap;
}

.calc-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-size: 13px;
    color: var(--text-muted);
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
}

.info-unit {
    font-size: 12px;
    color: var(--text-muted);
}

.calc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 60px 14px 16px;
    background: var(--navy);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    outline: none;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.08);
}

.input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.input-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Quick Purity Buttons */
.quick-purity {
    margin-bottom: 24px;
}

.quick-purity label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-btns button {
    padding: 7px 14px;
    background: rgba(30, 58, 95, 0.3);
    border: 1px solid var(--white-05);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    transition: all 0.25s;
}

.quick-btns button:hover {
    border-color: var(--border-gold);
    color: var(--gold);
    background: rgba(201, 162, 39, 0.06);
}

.quick-btns button.active {
    background: rgba(201, 162, 39, 0.12);
    border-color: rgba(201, 162, 39, 0.5);
    color: var(--gold);
}

/* Result */
.calc-result {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.06) 0%, rgba(44, 82, 130, 0.04) 100%);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.calc-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.4), transparent);
}

.result-header {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 18px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.result-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.result-item {
    text-align: center;
}

.result-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.result-value {
    display: block;
    font-size: 30px;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.5px;
}

.result-total .result-value {
    font-size: 40px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-unit {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.result-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.3), transparent);
}

.result-formula {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid rgba(201, 162, 39, 0.08);
}

/* ===== Reference Table ===== */
.reference-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
    position: relative;
}

.reference-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--white-10), transparent);
}

.table-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.table-tab {
    padding: 10px 20px;
    background: rgba(19, 34, 64, 0.6);
    border: 1px solid var(--white-05);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.table-tab:hover {
    border-color: var(--border-gold);
    color: var(--text-secondary);
}

.table-tab.active {
    background: rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.4);
    color: var(--gold);
}

.price-table-wrapper {
    max-width: 600px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--white-05);
    box-shadow: var(--shadow);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(19, 34, 64, 0.6);
}

.price-table th {
    background: rgba(201, 162, 39, 0.06);
    padding: 14px 24px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    border-bottom: 1px solid var(--white-05);
    letter-spacing: 0.3px;
}

.price-table td {
    padding: 12px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--white-05);
    transition: background 0.2s;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover td {
    background: rgba(30, 58, 95, 0.3);
}

.price-table td:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.price-table td:last-child {
    font-weight: 700;
    color: var(--white);
    text-align: right;
}

.price-table tr.highlight td {
    background: rgba(201, 162, 39, 0.05);
}

.price-table tr.highlight td:last-child {
    color: var(--gold);
}

/* ===== Footer ===== */
footer {
    background: #060D1A;
    border-top: 1px solid var(--white-05);
    padding: 40px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer Contact */
.footer-contact {
    margin-bottom: 20px;
}

.footer-contact-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 10px;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.footer-link.fb svg {
    color: #1877F2;
}

.footer-link.line svg {
    color: var(--line-green);
}

.footer-note p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 2;
}

.footer-bottom {
    border-top: 1px solid var(--white-05);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-content {
        justify-content: center;
        text-align: center;
    }

    .logo-section {
        width: 100%;
        justify-content: center;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 22px;
    }

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

    .calc-tabs {
        flex-direction: column;
    }

    .calc-tab {
        justify-content: center;
    }

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

    .calc-form {
        padding: 22px;
    }

    .result-grid {
        flex-direction: column;
        gap: 16px;
    }

    .result-divider {
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.3), transparent);
    }

    .price-value {
        font-size: 30px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .calc-info {
        flex-direction: column;
        gap: 8px;
    }

    .floating-line {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 14px;
    }

    .price-img {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    .quick-btns button {
        padding: 6px 12px;
        font-size: 11px;
    }

    .input-wrapper input {
        font-size: 16px;
    }

    .last-update {
        display: none;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.price-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.price-card:nth-child(1) { animation-delay: 0s; }
.price-card:nth-child(2) { animation-delay: 0.1s; }
.price-card:nth-child(3) { animation-delay: 0.2s; }
.price-card:nth-child(4) { animation-delay: 0.3s; }

/* Price update flash */
@keyframes priceFlash {
    0% { filter: brightness(1.4); }
    100% { filter: brightness(1); }
}

.price-updated {
    animation: priceFlash 0.8s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--navy);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 39, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 162, 39, 0.35);
}

/* Selection */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: var(--white);
}
