﻿/* ============================================================
   phongthuy.css — Netco Phong Thủy Portal
   Theme: Cổ điển Á Đông · Đỏ son · Vàng kim · Mực tàu
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    /* Core palette */
    --ink: #12090a;
    --ink-soft: #2c1a1d;
    --red-deep: #7a1515;
    --red: #9b1c1c;
    --red-bright: #c0392b;
    --gold: #b8860b;
    --gold-light: #d4a030;
    --gold-shine: #f0c060;
    --cream: #fdf8ee;
    --cream-dark: #f5ecd5;
    --cream-mid: #eedfc0;
    --jade: #1a5c3a;
    --jade-light: #2d7a52;
    /* Semantic */
    --sidebar-w: 350px;
    --topbar-h: 56px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    /* Sidebar bg uses lacquer red */
    --sidebar-bg: #282121;
    --sidebar-border: rgba(212,160,48,0.15);
    --sidebar-text: rgba(240,192,96,0.75);
    --sidebar-hover: rgba(212,160,48,0.1);
    --sidebar-active: rgba(155,28,28,0.8);
    --pt-card-bg: linear-gradient(135deg, #ffffff 0%, #f7f0f0 100%);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
}

body {
    font-family: 'EB Garamond', 'Times New Roman', serif;
    background: var(--cream-dark);
/*    background-image: url('../images/backgrround.png');*/
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    font-size: 15px;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.pt-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    /*    background: var(--sidebar-bg);*/
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,160,48,0.2) transparent;
    background: linear-gradient( 180deg, rgba(24,18,12,0.96) 0%, rgba(18,14,10,0.98) 100% );
    box-shadow: inset -1px 0 0 rgba(240,192,96,0.08), 0 0 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
}

    /* Decorative left stripe */
    .pt-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, transparent 0%, var(--gold-light) 20%, var(--gold-light) 80%, transparent 100%);
        opacity: 0.5;
    }

/* Logo */
.pt-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 5px 18px;
    border-bottom: 1px solid var(--sidebar-border);
}

.pt-logo-symbol {
    font-size: 50px;
    color: var(--gold-shine);
    animation: rotate-slow 10s linear infinite;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(240,192,96,0.5));
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.pt-logo-text {
    display: flex;
    flex-direction: column;
}

.pt-logo-main {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-shine);
    letter-spacing: 2px;
    line-height: 1.2;
    text-decoration: none !important;
}
    .pt-logo-main:hover {
        text-decoration: none !important;
        color: var(--gold-shine) !important; /* Giữ nguyên màu vàng gold không bị đổi màu mặc định */
    }

.pt-logo-sub {
    font-family: 'EB Garamond', serif;
    font-size: 10px;
    color: rgba(240,192,96,0.45);
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* Nav sections */
.pt-nav {
    flex: 1;
    padding: 12px 0;
}

/*.pt-nav-section {
    font-family: 'Cinzel', serif;*/
/*    font-size: 9px;*/
/*letter-spacing: 2.5px;
    color: rgba(240,192,96,0.35);
    padding: 18px 20px 6px;
    text-transform: uppercase;
}*/
.pt-nav-section {
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    color: rgba(240,192,96,0.55);
    padding: 22px 22px 8px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 12px rgba(240,192,96,0.15);
}

.pt-nav-item {
    /*display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--sidebar-text);
    text-decoration: none;*/
    /*    font-size: 13.5px;*/
    /*font-family: 'EB Garamond', serif;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    position: relative;
    border-left: 2px solid transparent;*/
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-family: 'EB Garamond', serif;
    letter-spacing: 0.4px;
    transition: all 0.28s ease;
    position: relative;
    border-left: 2px solid transparent;
    overflow: hidden;
}

    /*    .pt-nav-item:hover {
        background: var(--sidebar-hover);
        color: var(--gold-shine);
        border-left-color: rgba(240,192,96,0.3);
    }*/
    .pt-nav-item:hover {
        background: linear-gradient( 90deg, rgba(240,192,96,0.10), rgba(240,192,96,0.03) );
        color: #ffe7b0;
        border-left-color: rgba(240,192,96,0.7);
        box-shadow: inset 0 0 18px rgba(240,192,96,0.05);
        transform: translateX(2px);
    }

    /*    .pt-nav-item.active {
        background: var(--sidebar-active);
        color: var(--gold-shine);
        border-left-color: var(--gold-light);
    }*/
    .pt-nav-item.active {
        background: linear-gradient( 90deg, rgba(240,192,96,0.18), rgba(240,192,96,0.05) );
        color: #fff2cf;
        border-left-color: #f0c060;
        box-shadow: inset 0 0 25px rgba(240,192,96,0.08), 0 0 10px rgba(240,192,96,0.06);
    }

    .pt-nav-item::before {
        content: '';
        position: absolute;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,0.06), transparent );
        transition: 0.6s;
    }

    .pt-nav-item:hover::before {
        left: 100%;
    }

    .pt-nav-item.active::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-right: 6px solid var(--cream-dark);
    }

/*.pt-nav-icon {
    font-size: 14px;
    opacity: 0.7;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}*/
.pt-nav-icon {
    font-size: 14px;
    color: rgba(240,192,96,0.78);
    text-shadow: 0 0 10px rgba(240,192,96,0.35);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.25s;
}

/*.pt-badge {
    margin-left: auto;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 1px;
    background: var(--red);
    color: var(--gold-shine);
    padding: 2px 6px;
    border-radius: 20px;
    text-transform: uppercase;
}*/
.pt-badge {
    margin-left: auto;
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 1px;
    background: linear-gradient( 135deg, #a83232, #d14b4b );
    color: #ffe6a8;
    padding: 3px 8px;
    border-radius: 30px;
    box-shadow: 0 0 10px rgba(209,75,75,0.3);
    text-transform: uppercase;
}

/* Sidebar footer */
.pt-sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--sidebar-border);
}

.pt-today-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(212,160,48,0.08);
    border: 1px solid rgba(212,160,48,0.2);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    color: var(--sidebar-text);
    gap: 2px;
}

#sidebar-date {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: var(--gold-shine);
    letter-spacing: 1px;
}

#sidebar-can-chi {
    font-size: 11px;
    color: rgba(240,192,96,0.5);
    font-style: italic;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.pt-topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--topbar-h);
    background: var(--cream);
    border-bottom: 1px solid var(--cream-mid);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 14px;
    z-index: 100;
    /* Subtle top border in gold */
    box-shadow: inset 0 2px 0 rgba(184,134,11,0.25);
}

    /* Top border decoration */
    .pt-topbar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold-shine) 50%, var(--gold) 80%, transparent 100%);
        opacity: 0.6;
    }

.pt-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

    .pt-menu-btn span {
        display: block;
        width: 22px;
        height: 1.5px;
        background: var(--red-deep);
        transition: all 0.3s;
    }

.pt-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.pt-breadcrumb-root {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    color: rgba(122,21,21,0.5);
    letter-spacing: 1px;
}

.pt-breadcrumb-sep {
    color: rgba(184,134,11,0.4);
    font-size: 14px;
}

.pt-breadcrumb-current {
    font-family: 'EB Garamond', serif;
    font-size: 15px;
    color: var(--red-deep);
    font-style: italic;
}

.pt-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pt-clock {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: var(--red-deep);
    letter-spacing: 2px;
    min-width: 80px;
    text-align: right;
}

.pt-lunar-badge {
    font-family: 'EB Garamond', serif;
    font-size: 13px;
    font-style: italic;
    color: rgba(122,21,21,0.6);
    background: rgba(184,134,11,0.08);
    border: 1px solid rgba(184,134,11,0.2);
    border-radius: 20px;
    padding: 3px 12px;
    white-space: nowrap;
}

/* ── Main ───────────────────────────────────────────────────── */
.pt-main {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    flex: 1;
    min-height: calc(100vh - var(--topbar-h));
    background: var(--cream-dark);
    position: relative;
    font-size: 14px;
}

    /* Background pattern */
    .pt-main::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: radial-gradient(circle at 20% 20%, rgba(184,134,11,0.04) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(122,21,21,0.03) 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
    }

.pt-content-wrap {
    position: relative;
    z-index: 1;
    padding: 28px 32px;
    /*    max-width: 1200px;*/
}

/* ── Page Header ────────────────────────────────────────────── */
.pt-page-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cream-mid);
    position: relative;
}

    .pt-page-header::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 80px;
        height: 2px;
        background: var(--gold);
        opacity: 0.7;
    }

.pt-page-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pt-page-icon {
    font-size: 26px;
    color: var(--gold);
    margin-top: 2px;
    filter: drop-shadow(0 2px 4px rgba(184,134,11,0.3));
}

.pt-page-title {
    /*    font-family: 'Cinzel', serif;*/
    font-size: 22px;
    font-weight: 600;
    color: var(--red-deep);
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.pt-page-desc {
    font-size: 14px;
    color: rgba(44,26,29,0.55);
    font-style: italic;
    margin-top: 4px;
}

/* ── Cards ──────────────────────────────────────────────────── */
/*.pt-card {
    background: linear-gradient(135deg, #ffffff 0%, #f7f0f0 100%);
    border: 1px solid var(--cream-mid);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}*/
.pt-card {   
    background: linear-gradient(135deg, #ffffff 0%, #f7f0f0 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gold-light);
}
    .pt-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
        opacity: 0.6;
    }

.pt-card-title {
    /*    font-family: 'Cinzel', serif;*/
    /*    font-size: 12px;*/
    letter-spacing: 2px;
    color: var(--red-deep);
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(184,134,11,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

    .pt-card-title::before {
        content: '◈';
        color: var(--gold);
        font-size: 10px;
    }

/* Can Chi card (dark variant) */
.pt-card-dark {
    background: linear-gradient(135deg, var(--red-deep) 0%, #3a0e0e 100%);
    border-color: rgba(212,160,48,0.3);
    color: var(--gold-shine);
}

    .pt-card-dark .pt-card-title {
        color: rgba(240,192,96,0.7);
        border-bottom-color: rgba(240,192,96,0.15);
    }

        .pt-card-dark .pt-card-title::before {
            color: var(--gold-shine);
        }

/* ── Form elements ──────────────────────────────────────────── */
.pt-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.pt-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pt-label {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--red-deep);
    text-transform: uppercase;
    opacity: 0.8;
    font-weight:bold;
}

.pt-input, .pt-select {
    padding: 9px 12px;
    border: 1px solid rgba(184,134,11,0.3);
    border-radius: var(--radius-sm);
    background: rgba(253,248,238,0.9);
    font-family: 'EB Garamond', serif;
    font-size: 15px;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    outline: none;
}

/*    .pt-input:focus, .pt-select:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(184,134,11,0.12);
    }*/

.pt-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b8860b'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    text-decoration: none;
    outline: none;
}

/*.pt-btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
    color: var(--gold-shine);
    border: 1px solid rgba(212,160,48,0.4);
    box-shadow: 0 3px 14px rgba(155,28,28,0.25);
}

    .pt-btn-primary:hover {
        background: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%);
        box-shadow: 0 5px 20px rgba(155,28,28,0.4);
        transform: translateY(-1px);
    }

    .pt-btn-primary:active {
        transform: translateY(0);
    }*/

.pt-btn-primary {
    position: relative;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    padding: 0 20px;
    border-radius: 999px;
    border: 2px solid #b07b62;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #2d1d18;
    background: linear-gradient( to bottom, #efcfbe 0%, #dfb59d 45%, #cc9578 100% );
    box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(140,80,55,.25), 0 4px 10px rgba(0,0,0,.12);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

    /* inner border */

    .pt-btn-primary::before {
        content: "";
        position: absolute;
        inset: 4px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,.45);
        pointer-events: none;
    }

    /* hover */

    .pt-btn-primary:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
        box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(140,80,55,.28), 0 6px 14px rgba(0,0,0,.16);
    }

    /* click */

    .pt-btn-primary:active {
        transform: translateY(1px);
        box-shadow: inset 0 3px 6px rgba(0,0,0,.15);
    }

.pt-btn-secondary {
    background: transparent;
    color: var(--red-deep);
    border: 1px solid rgba(184,134,11,0.35);
}

    .pt-btn-secondary:hover {
        background: rgba(184,134,11,0.06);
        border-color: var(--gold);
    }

.pt-btn-full {
    width: 100%;
}

/* ── Can Chi display blocks ─────────────────────────────────── */
/*.pt-canchi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 700px) {
    .pt-canchi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pt-canchi-item {
    background: linear-gradient(145deg, var(--red-deep) 0%, #2a0808 100%);
    border: 1px solid rgba(212,160,48,0.25);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

.pt-canchi-label {*/
/*    font-family: 'Cinzel', serif;*/
/*    font-size: 9px;*/
/*letter-spacing: 2px;
    color: rgba(240,192,96,0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pt-canchi-value {*/
/*    font-family: 'Cinzel', serif;*/
/*font-size: 18px;
    font-weight: 600;
    color: var(--gold-shine);
    text-shadow: 0 0 12px rgba(240,192,96,0.4);
    line-height: 1.2;
}

.pt-canchi-sub {
    font-size: 11px;
    color: rgba(240,192,96,0.45);
    margin-top: 3px;
    font-style: italic;
}*/
pt-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
    padding:5px;
}
.pt-info-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 18px;
}
.pt-grid2{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}
.pt-grid3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}
/* --- GRID CAN CHI SÁNG --- */
.pt-canchi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
    /*    background: #fff;*/
}

.pt-canchi-item {
    /*    background: #fdfdfd;*/
    border: 1px solid rgba(184, 134, 11, 0.15);
    border-radius: 6px;
    padding: 16px 10px;
    text-align: center;
    transition: all 0.3s ease;
}

    /* Hiệu ứng hover nhẹ để tạo chiều sâu */
    .pt-canchi-item:hover {
        background: #fffdf8;
        border-color: rgba(184, 134, 11, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(184, 134, 11, 0.1);
    }

.pt-canchi-label {
    font-size: 11px;
    text-transform: uppercase;
    color: rgba(122, 21, 21, 0.5); /* Đỏ nhạt */
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.pt-canchi-value {
    /*    font-family: 'Cinzel', serif;*/
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
    color: #7a1515; /* Màu đỏ chủ đạo */
    margin-bottom: 4px;
}

.pt-canchi-sub {
    font-size: 12px;
    color: #b8860b; /* Màu vàng đồng */
    font-weight: 500;
}

/* ── Phong thuy info tiles ──────────────────────────────────── */
.pt-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.pt-info-tile {
    background: rgba(255,252,245,0.9);
    border: 1px solid rgba(184,134,11,0.18);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    text-align: center;
}

.pt-info-tile-label {
    /*    font-family: 'Cinzel', serif;*/
    /*    font-size: 9px;*/
    letter-spacing: 1.5px;
    color: #1D4447;
    opacity: 0.8;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.pt-info-tile-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    font-family: 'EB Garamond', serif;
}

.pt-info-tile-desc {
    /*    font-size: 11px;*/
    color: rgba(44,26,29,0.45);
    margin-top: 2px;
    font-style: italic;
    font-weight: bold;
}

/* Tag tốt/xấu */
.pt-tag-tot {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
    background: rgba(45,122,82,0.12);
    color: var(--jade);
    border: 1px solid rgba(45,122,82,0.25);
}

.pt-tag-xau {
    background: rgba(155,28,28,0.1);
    color: var(--red);
    border-color: rgba(155,28,28,0.2);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-family: 'Cinzel', serif;
}

/* ── Date divider ────────────────────────────────────────────── */
.pt-date-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

    .pt-date-divider::before, .pt-date-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(184,134,11,0.3), transparent);
    }

    .pt-date-divider span {
        font-family: 'Cinzel', serif;
        font-size: 10px;
        letter-spacing: 2px;
        color: rgba(184,134,11,0.6);
        text-transform: uppercase;
    }

/* ── Alert / Notice ─────────────────────────────────────────── */
.pt-alert {
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 3px solid;
}

.pt-alert-info {
    background: rgba(26,92,58,0.06);
    border-color: var(--jade);
    color: var(--jade);
}

.pt-alert-warning {
    background: rgba(184,134,11,0.07);
    border-color: var(--gold);
    color: #7a5c00;
}

/* ── Result box ─────────────────────────────────────────────── */
.pt-result-box {
    display: none;
    margin-top: 24px;
    animation: fadeUpIn 0.4s ease;
}

    .pt-result-box.visible {
        display: block;
    }

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Divider ────────────────────────────────────────────────── */
.pt-hr {
    border: none;
    border-top: 1px dashed rgba(184,134,11,0.25);
    margin: 20px 0;
}

/* ── Overlay (mobile) ───────────────────────────────────────── */
.pt-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18,9,10,0.6);
    z-index: 150;
    backdrop-filter: blur(2px);
}

    .pt-overlay.active {
        display: block;
    }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pt-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index:999;
    }

        .pt-sidebar.open {
            transform: translateX(0);
            box-shadow: 6px 0 30px rgba(18,9,10,0.5);
        }

    .pt-topbar {
        left: 0;
    }

    .pt-main {
        margin-left: 0;
    }

    .pt-menu-btn {
        display: flex;
    }

    .pt-content-wrap {
        padding: 20px 16px;
    }

    .pt-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        z-index: 998;
    }

        .pt-overlay.show {
            opacity: 1;
            visibility: visible;
        }
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(184,134,11,0.25);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(184,134,11,0.45);
    }

.pt-tab-row {
    display: flex;
    border: 1px solid rgba(184,134,11,.3);
    border-radius: 4px;
    overflow: hidden;
}

.pt-tab {
    flex: 1;
    padding: 11px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    /*    font-family: 'Cinzel', serif;*/
    /*    font-size: 12px;*/
    letter-spacing: 1px;
    color: rgba(122,21,21,.6);
    transition: all .2s;
}

    .pt-tab:first-child {
        border-right: 1px solid rgba(184,134,11,.25);
    }

    .pt-tab.active {
        background: linear-gradient(135deg,#7a1515 0%,#4a0808 100%);
        color: #f0c060;
    }

    .pt-tab:hover:not(.active) {
        background: rgba(184,134,11,.06);
    }

.pt-date-pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
}

.pt-date-block {
    background: rgba(253,248,238,.7);
    border: 1px solid rgba(184,134,11,.2);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
}

.pt-date-block-lbl {
    /*    font-family: 'Cinzel', serif;*/
    font-size: 10px;
    letter-spacing: 1.5px;
    color: rgba(122,21,21,.55);
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: bold;
}

.pt-date-block-val {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 600;
    color: #7a1515;
    letter-spacing: 1px;
}

.pt-date-block-sub {
    font-size: 13px;
    color: rgba(44,26,29,.5);
    margin-top: 5px;
    font-style: italic;
    font-weight: bold;
}

.pt-date-block-badge {
    display: inline-block;
    margin-top: 6px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: #b8860b;
    letter-spacing: .5px;
    font-weight: bold;
}

.pt-date-leap {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    color: #9b1c1c;
    font-style: italic;
}

.pt-date-arrow {
    font-size: 26px;
    color: rgba(184,134,11,.45);
    text-align: center;
    animation: arrow-pulse 2.5s ease-in-out infinite;
}

@keyframes arrow-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

.tag-tot {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    background: rgba(45,122,82,.12);
    color: #1a5c3a;
    border: 1px solid rgba(45,122,82,.25);
}

.tag-xau {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    background: rgba(155,28,28,.1);
    color: #9b1c1c;
    border: 1px solid rgba(155,28,28,.2);
}

.pt-spinner {
    display: none;
    text-align: center;
    padding: 32px;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: rgba(184,134,11,.7);
    letter-spacing: 2px;
}

    .pt-spinner.show {
        display: block;
    }

    .pt-spinner::before {
        content: '◈';
        display: block;
        font-size: 28px;
        margin-bottom: 10px;
        animation: spin-icon 1.5s linear infinite;
    }

@keyframes spin-icon {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

.pt-error-box {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(155,28,28,.08);
    border: 1px solid rgba(155,28,28,.25);
    border-left: 3px solid #9b1c1c;
    color: #7a1515;
    font-size: 14px;
    margin-top: 14px;
}

    .pt-error-box.show {
        display: block;
    }

@media (max-width: 640px) {
    .pt-date-pair {
        grid-template-columns: 1fr;
    }

    .pt-date-arrow {
        transform: rotate(90deg);
    }

    .pt-form-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
