/* ==========================================================================
   LAST Z GIFT CODES - /style/lastz-gift-codes.css
   Koristi zajednicke tokene iz lastz.css (--gold, --teal, --panel-solid, itd.)
   koji su vec globalno ucitani preko $GLOBAL_LASTZTOP$.
   ========================================================================== */

.lz-container {
    --gc-accent: var(--gold);
    --gc-accent-rgb: 255, 176, 32;
    --gc-glow: rgba(255, 176, 32, 0.25);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.gc-accent-text { color: var(--gc-accent); }

/* --- HEADER BANNER --- */
.header-banner {
    position: relative;
    background-image: linear-gradient(rgba(10, 11, 14, 0.65), rgba(10, 11, 14, 0.92)), url('https://mmediamreza.com/_bl/0/04005342.webp');
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--gc-accent);
    padding: 50px 20px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.header-banner::after {
    content: '';
    position: absolute;
    top: -100px; left: 0; width: 100%; height: 3px;
    background: linear-gradient(to bottom, transparent, var(--gc-accent), transparent);
    box-shadow: 0 0 12px var(--gc-accent);
    animation: gcRadarScan 4s linear infinite;
    opacity: 0.7;
}
@keyframes gcRadarScan {
    0% { top: -10px; }
    100% { top: 110%; }
}
.header-banner h1 {
    font-family: 'Chakra Petch', sans-serif;
    color: #ffffff;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}
.header-banner .subtitle {
    color: var(--gc-accent);
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.alliance-tag {
    position: absolute; top: 15px; right: 15px;
    background-color: var(--gc-accent); color: #1a1204;
    padding: 5px 14px; font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4); z-index: 2;
    transition: background-color 0.3s ease;
}

/* --- LIVE PULSE --- */
.live-update-counter {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,0,0,0.4); padding: 6px 14px; margin-top: 15px;
    font-family: 'Share Tech Mono', monospace; font-size: 0.75rem; font-weight: 600;
    color: var(--bone); border: 1px solid rgba(255,255,255,0.08);
}
.pulse-dot { width: 8px; height: 8px; background-color: var(--teal); border-radius: 50%; position: relative; }
.pulse-dot::after {
    content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    background-color: inherit; border-radius: 50%; animation: gcPulseGlow 1.8s infinite ease-in-out;
}
@keyframes gcPulseGlow { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(3.5); opacity: 0; } }

/* --- INTRO --- */
.intro-section {
    background-color: var(--panel-solid); border-left: 3px solid var(--gc-accent);
    padding: 22px; margin-bottom: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: border-color 0.3s ease;
}
.intro-section p { color: var(--bone); font-size: 0.98rem; line-height: 1.7; text-align: justify; }

/* --- COLLAB BANNER (Report New/Expired Code CTA) --- */
.collab-banner {
    background: linear-gradient(135deg, rgba(255,176,32,0.08), var(--panel-solid));
    border: 1px solid var(--line);
    border-left: 4px solid var(--gc-accent);
    padding: 26px 30px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.collab-banner-icon { font-size: 2.6rem; line-height: 1; flex-shrink: 0; }
.collab-banner-text { flex: 1; min-width: 240px; }
.collab-banner-text h2 {
    font-family: 'Chakra Petch', sans-serif; color: #fff; font-size: 1.3rem;
    margin: 0 0 8px; text-transform: none; border: none; padding: 0; letter-spacing: 0;
}
.collab-banner-text p { color: var(--ash); font-size: 0.9rem; line-height: 1.55; margin: 0; }
.collab-banner-btn { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 700px) {
    .collab-banner { flex-direction: column; text-align: center; padding: 22px; }
    .collab-banner-btn { width: 100%; justify-content: center; }
}

/* --- AKCIJE (Report / Redeem / Scanner Mode dugmad) --- */
.action-container { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }

/* --- NASLOVI SEKCIJA --- */
.section-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.1rem; color: #fff; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid var(--line);
    display: flex; align-items: center; gap: 8px;
}
.section-title.active-title { color: var(--teal); border-bottom-color: var(--teal); }
.section-title.perm-title { color: var(--tier-guide); border-bottom-color: var(--tier-guide); margin-top: 25px; }
.section-title.expired-title { color: var(--wax); border-bottom-color: var(--wax); margin-top: 35px; }

/* --- TABELE --- */
.table-responsive {
    width: 100%; margin-bottom: 30px; box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    background-color: var(--panel-solid); overflow: hidden; border: 1px solid var(--line);
}
table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
#active-table th:nth-child(1), #expired-table th:nth-child(1) { width: 26%; }
#active-table th:nth-child(2), #expired-table th:nth-child(2) { width: 18%; }
#active-table th:nth-child(3), #expired-table th:nth-child(3) { width: 32%; }
#active-table th:nth-child(4), #expired-table th:nth-child(4) { width: 24%; }
#permanent-table th:nth-child(1) { width: 24%; }
#permanent-table th:nth-child(2) { width: 16%; }
#permanent-table th:nth-child(3) { width: 60%; }
th {
    background-color: rgba(255,255,255,0.03); color: var(--gc-accent);
    font-family: 'Share Tech Mono', monospace; font-weight: 700; padding: 14px;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px;
}
td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--bone); font-size: 0.88rem; vertical-align: middle; word-wrap: break-word; overflow-wrap: break-word; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background-color: rgba(255,255,255,0.015); }

.code-container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.code-badge {
    font-family: 'Share Tech Mono', monospace; font-weight: 700; color: #fff;
    background-color: var(--panel-solid); border: 1px solid var(--gc-accent);
    padding: 7px 13px; letter-spacing: 1px; display: inline-block; font-size: 0.85rem;
}
.btn-copy {
    background-color: rgba(255,255,255,0.04); color: var(--bone); border: 1px solid var(--line);
    padding: 6px 13px; font-family: 'Chakra Petch', sans-serif; font-size: 0.72rem; font-weight: 700;
    cursor: pointer; text-transform: uppercase; transition: all 0.15s ease;
}
.btn-copy:hover { background-color: rgba(255,176,32,0.1); border-color: var(--gc-accent); color: #fff; }

.status-tag {
    display: inline-block; padding: 4px 12px; font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; font-family: 'Share Tech Mono', monospace;
}
.status-working { background-color: rgba(34,211,172,0.15); color: var(--teal); border: 1px solid var(--teal); }
.status-perm { background-color: rgba(47,143,214,0.15); color: var(--tier-guide); border: 1px solid var(--tier-guide); }
.status-expired { background-color: rgba(224,49,59,0.15); color: var(--wax); border: 1px solid var(--wax); }
.status-caution {
    display: inline-block; margin-left: 6px; font-size: 0.62rem; font-weight: 700;
    color: var(--gold); background: rgba(255,176,32,0.12); border: 1px solid var(--line-gold);
    padding: 2px 8px; white-space: nowrap; font-family: 'Share Tech Mono', monospace;
}

.info-text { color: #ffffff; font-weight: 500; font-size: 0.88rem; }
.meta-text { color: var(--ash); font-size: 0.72rem; margin-top: 4px; display: block; font-weight: 700; font-family: 'Share Tech Mono', monospace; }

/* --- VOTE / REPORT WIDGET --- */
.vote-widget {
    margin-top: 12px; padding: 12px 14px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 8px;
}
.vote-question {
    font-family: 'Share Tech Mono', monospace; font-size: 0.68rem; color: var(--ash);
    text-transform: uppercase; letter-spacing: 1px;
}
.vote-buttons { display: flex; gap: 6px; flex-wrap: nowrap; }
.btn-vote {
    flex: 1 1 0; min-width: 0;
    background: rgba(34,211,172,0.1); border: 1px solid var(--teal); color: var(--teal);
    padding: 7px 6px; cursor: pointer; font-family: 'Chakra Petch', sans-serif; font-size: 0.68rem; font-weight: 700;
    transition: all 0.15s ease; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-vote:hover:not(:disabled) { background-color: rgba(34,211,172,0.22); transform: translateY(-1px); }
.btn-vote:disabled { opacity: 0.55; cursor: default; }
.vote-count { font-size: 0.7rem; color: var(--ash); font-family: 'Share Tech Mono', monospace; }
.vote-count b { color: var(--bone); }
.btn-report-quick {
    flex: 1 1 0; min-width: 0;
    background: rgba(224,49,59,0.1); border: 1px solid var(--wax); color: var(--wax);
    padding: 7px 6px; cursor: pointer; font-family: 'Chakra Petch', sans-serif; font-size: 0.68rem; font-weight: 700;
    transition: all 0.15s ease; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-report-quick:hover:not(:disabled) { background-color: rgba(224,49,59,0.22); transform: translateY(-1px); }
.btn-report-quick:disabled { opacity: 0.55; cursor: default; }

/* --- GUIDE / FAQ / COLLAB SEKCIJE --- */
.guide-section, .faq-section, .collab-section {
    background-color: var(--panel-solid); padding: 28px; margin-top: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3); border: 1px solid var(--line);
}
.collab-section { border-left: 3px solid var(--gc-accent); margin-bottom: 28px; margin-top: 0; }
.guide-section h2, .faq-section h2, .collab-section h2 {
    font-family: 'Chakra Petch', sans-serif; color: #fff; font-size: 1.15rem; margin-bottom: 14px;
    text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 8px; letter-spacing: 0.5px;
}
.collab-section h2 { color: var(--gc-accent); border-bottom-color: var(--line); }
.guide-list { padding-left: 20px; }
.guide-intro { color: var(--ash); font-size: 0.92rem; margin-bottom: 15px; }
.guide-list li { margin-bottom: 12px; color: var(--bone); font-size: 0.92rem; }
.guide-list a { color: var(--teal); }
.faq-item { margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.faq-item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.faq-item h3 { font-family: 'Chakra Petch', sans-serif; color: var(--gc-accent); font-size: 0.98rem; margin-bottom: 6px; }
.faq-item p { color: var(--ash); font-size: 0.88rem; line-height: 1.6; }
.faq-item a { color: var(--teal); }
.loading { text-align: center; padding: 36px; color: var(--bone); background-color: var(--panel-solid); font-size: 0.9rem; font-family: 'Share Tech Mono', monospace; }

/* --- BOUNTY BOARD --- */
.bounty-board-container {
    background: var(--panel-solid) !important;
    border: 1px solid var(--line) !important;
    border-left: 3px solid var(--gold) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
}
.bounty-board-container h3 { font-family: 'Chakra Petch', sans-serif !important; }

/* --- BOUNTY BOARD --- */
.bounty-board-container {
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    padding: 22px 24px;
    margin: 24px 0;
}
.bounty-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bounty-header-icon { font-size: 1.3rem; line-height: 1; }
.bounty-header h3 {
    margin: 0; font-family: 'Chakra Petch', sans-serif; font-size: 1rem; color: #fff;
    text-transform: uppercase; letter-spacing: 1px;
}
.bounty-subtitle { margin: 0 0 16px; font-size: 0.82rem; color: var(--ash); }

.bounty-list { display: flex; flex-direction: column; gap: 8px; }
.bounty-empty { font-size: 0.85rem; color: var(--ash); font-style: italic; }

.bounty-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: rgba(255,255,255,0.02);
    border-left: 3px solid var(--line); font-size: 0.85rem;
}
.bounty-left { display: flex; align-items: center; gap: 10px; color: var(--bone); }
.bounty-medal { font-size: 1.1rem; line-height: 1; }
.bounty-place { font-family: 'Share Tech Mono', monospace; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; color: var(--ash); min-width: 26px; }
.bounty-alliance { color: var(--wax); font-weight: 700; }
.bounty-server { color: var(--ash); font-size: 0.75rem; }
.bounty-count {
    font-family: 'Share Tech Mono', monospace; font-weight: 700; font-size: 0.75rem;
    color: var(--gold); background: rgba(255,176,32,0.1); padding: 3px 10px;
}

.bounty-row.rank-1 { border-left-color: var(--gold); }
.bounty-row.rank-1 .bounty-place { color: var(--gold); }
.bounty-row.rank-2 { border-left-color: var(--teal); }
.bounty-row.rank-2 .bounty-place { color: var(--teal); }
.bounty-row.rank-3 { border-left-color: #c98a4a; }
.bounty-row.rank-3 .bounty-place { color: #c98a4a; }

.bounty-toggle-wrap { margin-top: 14px; text-align: center; }
.bounty-toggle-btn {
    background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--gold);
    font-family: 'Chakra Petch', sans-serif; font-size: 0.68rem; font-weight: 700;
    padding: 8px 16px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px;
    transition: all 0.2s ease;
}
.bounty-toggle-btn:hover { background: rgba(255,176,32,0.1); border-color: var(--gold); }

/* --- EMP PULSE (Copy klik efekat) --- */
@keyframes military-emp-pulse {
    8% { transform: scale(1); filter: brightness(1) contrast(1); box-shadow: inset 0 0 0px rgba(var(--gc-accent-rgb), 0); }
    15% { transform: scale(1.003) translateX(3px); filter: brightness(3.2) contrast(1.2); box-shadow: inset 0 0 50px rgba(var(--gc-accent-rgb), 0.5); }
    100% { transform: scale(1) translateX(0); filter: brightness(1) contrast(1); box-shadow: inset 0 0 0px rgba(var(--gc-accent-rgb), 0); }
}
.screen-shock { animation: military-emp-pulse 0.5s cubic-bezier(0.1, 0.8, 0.2, 1); }

/* --- MODAL --- */
.lz-modal {
    display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto; background-color: rgba(5, 8, 16, 0.85); backdrop-filter: blur(5px);
    align-items: center; justify-content: center; padding: 20px;
}
.lz-modal-content {
    background-color: var(--panel-solid); margin: auto; border: 2px solid var(--gc-accent);
    width: 100%; max-width: 650px; height: 80vh; max-height: 700px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.7); position: relative; display: flex; flex-direction: column;
    overflow: hidden; animation: gcFadeInModal 0.3s ease;
}
@keyframes gcFadeInModal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.lz-modal-close {
    position: absolute; top: 12px; right: 15px; color: var(--ash); font-size: 1.7rem; font-weight: 700;
    cursor: pointer; transition: color 0.2s ease; z-index: 10; line-height: 1;
}
.lz-modal-close:hover { color: var(--gc-accent); }
.lz-modal iframe { width: 100%; height: 100%; border: none; background-color: #ffffff; }

/* --- DESKTOP TABLE (Standardni raspored) --- */
.table-responsive table { width: 100%; border-collapse: collapse; margin-top: 0; }
.table-responsive th, .table-responsive td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }

/* --- MOBILNI RESPONSIVNI PRIKAZ TABELA --- */
@media screen and (max-width: 768px) {
    .desktop-cell { display: none !important; }
    #active-table, #expired-table, #permanent-table, .table-responsive table { display: block !important; border: none !important; background: transparent !important; width: 100% !important; }
    #active-table thead, #expired-table thead, #permanent-table thead { display: none !important; }
    #active-table tbody, #expired-table tbody, #permanent-table tbody { display: flex !important; flex-direction: column !important; gap: 14px !important; width: 100% !important; }
    #active-table tr, #expired-table tr, #permanent-table tr {
        display: block !important; background: var(--panel-solid) !important; border: 1px solid var(--line) !important;
        border-left: 4px solid var(--teal) !important; padding: 16px !important; box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
        margin-bottom: 0; width: 100% !important; box-sizing: border-box !important;
    }
    #expired-table tr { border-left-color: var(--wax) !important; }
    #permanent-table tr { border-left-color: var(--tier-guide) !important; }
    .mobile-card-wrapper { display: block !important; padding: 0 !important; border: none !important; text-align: left !important; width: 100% !important; }

    .phone-row-one { display: flex; flex-direction: column; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 12px; }
    .phone-code-header { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; gap: 8px; }
    .phone-code-header .code-badge { font-size: 0.95rem !important; padding: 8px 14px !important; }
    .phone-code-header .btn-copy { padding: 8px 16px !important; font-size: 0.78rem !important; }
    .phone-status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.85rem !important; }

    .phone-row-two { background: rgba(255,255,255,0.02); border: 1px solid var(--line); padding: 10px; margin-bottom: 12px; }
    .phone-rewards-text { font-size: 0.9rem !important; color: var(--bone) !important; line-height: 1.4; font-weight: 500; }

    .vote-widget { margin-top: 10px; margin-bottom: 5px; }

    .phone-row-three { font-size: 0.78rem !important; color: var(--ash) !important; background: rgba(255,255,255,0.02); padding: 6px 10px; }

    .lz-container { padding: 12px 10px 0; }
    .header-banner { padding: 34px 15px; }
    .header-banner h1 { font-size: 1.5rem; }
    .alliance-tag { position: relative; top: 0; right: 0; display: inline-block; margin-bottom: 10px; }
    .action-container { flex-direction: column; gap: 10px; }
    .action-container .btn { width: 100%; justify-content: center; }
    .lz-modal-content { height: 90vh; }
}
@media screen and (min-width: 769px) {
    .mobile-card-wrapper { display: none !important; }
}