/* Jendela Library - Additional Frontend Styles */

/* ===== NAV BUTTONS ===== */
.nav-btn {
    padding: 7px 18px;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
    background: rgba(255,255,255,0.08);
}
.nav-btn:hover {
    background: var(--white);
    color: var(--heading);
    border-color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
nav.nav-scrolled .nav-btn {
    border-color: rgba(61,51,38,0.2);
    color: var(--body);
    background: transparent;
}
nav.nav-scrolled .nav-btn:hover {
    border-color: var(--amber);
    color: var(--amber);
    background: rgba(200,135,42,0.06);
}
.nav-btn.active {
    background: var(--white);
    color: var(--heading);
}
nav.nav-scrolled .nav-btn.active {
    background: linear-gradient(135deg, var(--amber), var(--amber-lt));
    color: var(--white);
    border-color: transparent;
}
.nav-btn-reg {
    padding: 7px 18px;
    background: linear-gradient(135deg, var(--amber), #d4963a);
    color: var(--white);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    border: none;
}
.nav-btn-reg:hover {
    background: linear-gradient(135deg, var(--amber-lt), var(--amber));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200,135,42,0.35);
}
.nav-btn-logout {
    padding: 7px 14px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Nunito', sans-serif;
}
.nav-btn-logout:hover {
    background: rgba(239,68,68,0.2);
    color: #fff;
}
nav.nav-scrolled .nav-btn-logout {
    background: rgba(61,51,38,0.06);
    color: #999;
}
nav.nav-scrolled .nav-btn-logout:hover {
    background: rgba(239,68,68,0.08);
    color: #ef4444;
}

/* ===== INFO SLIDER ===== */
.info-slider-section {
    padding: 0 20px;
    margin-top: -50px;
    position: relative;
    z-index: 20;
}
.info-slider {
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}
.info-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.info-slide {
    min-width: 100%;
    padding: 0 4px;
}
.info-card {
    border-radius: 20px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 100px;
    position: relative;
    overflow: hidden;
    border: none;
}
.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.info-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

/* Card Colors */
.info-card-amber {
    background: linear-gradient(135deg, #C8872A 0%, #d4a04a 50%, #e8b86a 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(200,135,42,0.35);
}
.info-card-teal {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #2dd4bf 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(13,148,136,0.35);
}
.info-card-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(124,58,237,0.35);
}

.info-card-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 1;
}
.info-card-body {
    flex: 1;
    position: relative;
    z-index: 1;
}
.info-card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
}
.info-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}
.info-card-btn {
    flex-shrink: 0;
    padding: 12px 28px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    position: relative;
    z-index: 1;
}
.info-card-btn:hover {
    background: var(--white);
    color: var(--heading);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Slider Dots */
.info-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.info-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(200,135,42,0.25);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}
.info-dot.active {
    background: var(--amber);
    width: 24px;
    border-radius: 4px;
}

/* ===== DASHBOARD ===== */
.dashboard-section {
    padding: 100px 20px 60px;
    min-height: 100vh;
    background: linear-gradient(180deg, #faf8f5 0%, #f5f0eb 100%);
}
.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
}
.dashboard-header {
    margin-bottom: 40px;
}
.dashboard-title {
    font-size: 32px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--heading), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dashboard-subtitle {
    color: #999;
    font-size: 16px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
.dashboard-card {
    background: var(--white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}
.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.06);
}
.dashboard-card.full-width {
    grid-column: 1 / -1;
}
.dashboard-card-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--heading);
}
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.profile-row:last-child {
    border-bottom: none;
}
.profile-label {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
}
.profile-value {
    font-size: 14px;
    color: var(--heading);
    font-weight: 600;
}
.product-access-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-access-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(200,135,42,0.04), rgba(200,135,42,0.08));
    border-radius: 12px;
    border: 1px solid rgba(200,135,42,0.1);
}
.product-access-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-access-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
}
.product-access-date {
    font-size: 12px;
    color: #aaa;
}
.product-access-badge {
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-access-badge.active {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}
.dashboard-empty {
    color: #bbb;
    font-size: 14px;
    text-align: center;
    padding: 32px;
    background: rgba(0,0,0,0.02);
    border-radius: 12px;
}
.order-table-wrap {
    overflow-x: auto;
}
.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.order-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(0,0,0,0.02);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.order-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    vertical-align: middle;
}
.order-table code {
    background: rgba(200,135,42,0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--amber);
    font-weight: 600;
}
.order-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.order-badge.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}
.order-badge.pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}
.order-badge.failed {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}
.order-badge.expired {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    color: #4b5563;
}
.dashboard-actions {
    text-align: center;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .info-card-btn {
        width: 100%;
        text-align: center;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .nav-btn, .nav-btn-reg, .nav-btn-logout {
        display: none;
    }
}