/* ===== MAGAZYN CSS - PUBG Turnir Stili ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #222230;
    --accent-primary: #ff2d55;
    --accent-secondary: #ff6b35;
    --accent-gradient: linear-gradient(135deg, #ff2d55 0%, #ff6b35 100%);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --border-color: #2a2a3a;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(255, 45, 85, 0.3);
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 90px;
    position: relative;
}

/* ===== HEADER ===== */
.magazyn-header {
    padding: 20px 16px 16px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,45,85,0.1) 0%, transparent 100%);
}

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

.logo-icon {
    font-size: 32px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px rgba(255,45,85,0.5));
}

.logo-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
}

.logo-text p {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 2px;
}

/* ===== CATEGORY TABS ===== */
.category-tabs {
    display: flex;
    gap: 4px;
    margin: 12px 16px;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

.tab-btn {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.tab-btn .tab-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    flex-shrink: 0;
}

.tab-btn .tab-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.tab-btn .tab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    box-shadow: none;
    transform: none;
}

/* ===== SECTION TITLE ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 12px;
}

.title-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-title h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 3px;
    white-space: nowrap;
}

/* ===== TAB CONTENT ===== */
.tab-content {
    display: none;
    padding: 0 16px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== UC GRID ===== */
.uc-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
}

.uc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 14px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.uc-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.uc-icon {
    width: 46px;
    height: 46px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    filter: none;
}

.uc-icon svg,
.uc-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.uc-info {
    flex: 1;
    min-width: 0;
}

.uc-amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.uc-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.uc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.uc-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--accent-primary);
    margin-bottom: 0;
    white-space: nowrap;
}

.btn-buy {
    width: auto;
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.btn-buy:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.btn-buy:active {
    transform: scale(0.98);
}

/* ===== AKKAUNT LIST ===== */
.akkaunt-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
}

.akkaunt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.akkaunt-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.akkaunt-images {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.akkaunt-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.akkaunt-card:hover .akkaunt-images img {
    transform: scale(1.05);
}

.akkaunt-image-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.image-dot.active {
    background: var(--accent-primary);
    width: 20px;
    border-radius: 4px;
}

.akkaunt-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-gradient);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.akkaunt-info {
    padding: 16px;
}

.akkaunt-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.akkaunt-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.stat-item .stat-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
}

.stat-item .stat-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.stat-item .stat-value {
    font-weight: 600;
    color: var(--accent-primary);
}

.akkaunt-taryh {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.akkaunt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.akkaunt-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.akkaunt-price span {
    font-size: 12px;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

.empty-state-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 13px;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.modal-overlay.active {
    display: flex;
}

.magazyn-modal-box {
    background: var(--bg-secondary);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    border-top: 1px solid var(--border-color);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--accent-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.product-info {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.product-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-info .product-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px;
}

.btn-cancel,
.btn-confirm {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-cancel {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-cancel:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-confirm {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 45, 85, 0.4);
}

.btn-confirm:active {
    transform: translateY(0);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2000;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
    max-width: 90%;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: var(--success);
    color: var(--success);
}

.toast.error {
    border-color: var(--danger);
    color: var(--danger);
}

/* ===== LOADING ===== */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
    height: 120px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 481px) {
    .app-container {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }
}

@media (max-width: 360px) {
    .tab-btn {
        min-width: 0;
        padding: 9px 10px;
        font-size: 11px;
    }

    .tab-btn .tab-icon {
        width: 15px;
        height: 15px;
    }
}
