/* --- Variables & Reset --- */
:root {
    --bg-dark: #020617;
    --bg-gradient: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);

    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);

    --accent: #fbbf24;
    --accent-hover: #f59e0b;
    --accent-glow: rgba(251, 191, 36, 0.3);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --font-main: 'Vazirmatn', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    text-decoration: none;
}

body {
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.3;
}

.glow-top {
    width: 500px;
    height: 500px;
    background: #4f46e5;
    top: -200px;
    left: -100px;
}

.glow-bottom {
    width: 400px;
    height: 400px;
    background: #d97706;
    bottom: -100px;
    right: -100px;
}

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

.hidden {
    display: none !important;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-large {
    margin-bottom: 1.5rem;
}

.text-sm {
    font-size: 0.85rem;
}

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

.text-muted {
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--accent);
}

/* --- Header --- */
.glass-header {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-glow);
    color: white;
}

.logo h1 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-auth-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* --- Buttons --- */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login-styled {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #fff;
    padding: 0.5rem 1.8rem;
    font-size: 0.95rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    transition: 0.3s;
}

.btn-login-styled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.5);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-primary-outline:hover {
    background: rgba(99, 102, 241, 0.1);
}

.btn-gold {
    background: var(--accent);
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-gold:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    color: var(--text-muted);
}

.btn-text:hover {
    color: #fff;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.btn-full {
    width: 100%;
}

/* --- Panels --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* --- Views --- */
.view {
    display: none;
    padding: 2rem 0;
    animation: fadeIn 0.4s ease-out;
}

.view.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero Section --- */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
    margin-bottom: 5rem;
    padding-top: 2rem;
}

.hero-text {
    padding-top: 1rem;
}

.hero-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.badge-fantasy {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
}

/* --- Service Widget --- */
.service-card {
    padding: 1.5rem;
}

.service-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.svc-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: bold;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.svc-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

.input-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.input-box {
    position: relative;
}

.input-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-main);
    transition: 0.3s;
}

.input-box input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amount-grid button {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: #cbd5e1;
    padding: 0.6rem 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.amount-grid button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: #fff;
}

.simple-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: white;
}

/* Radio Duration Selector */
.duration-selector-radio {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 5px;
}

.radio-chip {
    flex: 1;
    position: relative;
    cursor: pointer;
    min-width: 70px;
}

.radio-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-chip span {
    display: block;
    text-align: center;
    padding: 0.6rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: 0.3s;
}

.radio-chip input:checked+span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.pkg-list-scroll {
    max-height: 280px;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 5px;
}

.pkg-list-scroll::-webkit-scrollbar {
    width: 4px;
}

.pkg-list-scroll::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

.pkg-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.pkg-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.pkg-price {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
}

.pkg-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
}


/* --- Products --- */
.products-wrapper {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 Columns Desktop */
    gap: 1.5rem;
}

.product-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.prod-img-box {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.product-card:hover .prod-img-box img {
    transform: scale(1.1);
}

.prod-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prod-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
}

.prod-price {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.btn-buy {
    margin-top: auto;
    background: linear-gradient(90deg, #1e293b, #0f172a);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-buy:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* --- Checkout --- */
.checkout-layout {
    display: grid;
    grid-template-columns: 3fr 9fr;
    /* 3 to 9 Ratio */
    gap: 1.5rem;
    align-items: start;
}

/* Sidebar (Invoice) - Col 3 */
.checkout-sidebar {
    padding: 1.5rem;
}

.invoice-head h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.product-preview {
    margin-bottom: 1.5rem;
}

.preview-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.badge-mini {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: #cbd5e1;
}

.phone-display-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    color: #fff;
    letter-spacing: 1px;
    font-family: monospace;
    font-size: 1rem;
    margin-top: 5px;
}

.invoice-rows .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-text {
    color: #fff;
    font-weight: bold;
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 0;
}

.total {
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
}

.total-price {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Main (Payment) - Col 9 */
.checkout-main {
    padding: 2rem;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pay-method-section label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.methods-row {
    display: flex;
    gap: 1rem;
}

.pay-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 0.6rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    font-size: 0.85rem;
}

.pay-card i {
    width: 18px;
    height: 18px;
}

.pay-card.active {
    border-color: var(--accent);
    background: rgba(251, 191, 36, 0.05);
}

.pay-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.check-circle {
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--accent);
    display: none;
}

.pay-card.active .check-circle {
    display: block;
}

/* Real Card Visual (Updated) */
.card-display-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.real-card-visual {
    width: 100%;
    max-width: 380px;
    height: 220px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Space between number and name */
}

/* Card Number */
.card-number-group {
    font-family: monospace;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
    text-align: center;
    width: 100%;
    margin-top: 2rem;
    border-radius: 12px;
    padding: 1rem 0;
    white-space: nowrap;
}

.card-number-group.clickable {
    cursor: pointer;
    transition: 0.2s;
}

.card-number-group.clickable:hover {
    color: var(--accent);
    transform: scale(1.02);
    border-color: var(--accent);
}

/* Footer: Name */
.card-footer-row {
    display: flex;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.card-holder {
    display: flex;
    flex-direction: column;
}

.card-holder .label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.card-holder .value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}


.alert-box {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.glass-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: 0.3s;
}

.glass-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
}

.center-input {
    text-align: center;
    letter-spacing: 3px;
    font-size: 1.2rem;
}

.action-row {
    display: flex;
    justify-content: flex-end;
}

.centered-action {
    justify-content: center;
}

.btn-checkout {
    padding: 0.8rem 3rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* --- Auth --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-box {
    width: 100%;
    max-width: 380px;
    padding: 2.5rem;
    text-align: center;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-inputs input {
    margin-bottom: 1rem;
}

/* --- Support Grid --- */
.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.support-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
}

.support-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.icon-box-lg {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.support-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.support-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.support-value {
    font-family: monospace;
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
}

/* --- Footer --- */
.main-footer {
    background: rgba(2, 6, 23, 0.95);
    border-top: 4px solid transparent;
    border-image: linear-gradient(to right, var(--primary), var(--accent)) 1;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-about h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 350px;
}

.footer-links h5 {
    color: #fff;
    margin-bottom: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-trust h5 {
    color: #fff;
    margin-bottom: 1.2rem;
}

.trust-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    border: 1px solid var(--glass-border);
}

.footer-copy {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #475569;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        order: -1;
    }

    /* Summary on top for mobile */
    .payment-grid {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .desktop-nav,
    .desktop-auth {
        display: none;
    }

    .mobile-auth-btn {
        display: flex;
    }

    /* Show only icon */

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .trust-box {
        margin: 0 auto;
    }

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

    /* Card Number Responsive */
    .card-number-group {
        font-size: 1.3rem;
        white-space: normal;
        word-break: break-all;
    }

    .card-footer-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.trx-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.trx-header {
    text-align: center;
    margin-bottom: 3rem;
}

.trx-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.trx-table-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.trx-table {
    width: 100%;
    border-collapse: collapse;
}

.trx-table thead {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.trx-table th {
    padding: 1.2rem;
    text-align: right;
    color: var(--text-muted);
    font-weight: 500;
}

.trx-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: #fff;
    font-size: 0.95rem;
}

.trx-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.badge-type {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
}

.type-charge {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.type-internet {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.type-account {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

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

.receipt-card {
    background: #0f172a;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 400px;
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.2);
    text-align: center;
}

.receipt-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.8rem;
}

.receipt-row:last-child {
    border: none;
}

.receipt-label {
    color: var(--text-muted);
}

.receipt-value {
    color: #fff;
    font-weight: bold;
    font-family: monospace;
    letter-spacing: 1px;
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

@media (max-width: 768px) {
    .trx-table thead {
        display: none;
    }

    .trx-table tr {
        display: block;
        border: 1px solid var(--glass-border);
        margin-bottom: 1rem;
        border-radius: 12px;
        padding: 1rem;
    }

    .trx-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
    }

    .trx-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.85rem;
    }
}

.btn-invoice {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main, #ffffff);
    padding: 6px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.btn-invoice:hover {
    background: var(--accent, #3b82f6); 
    color: white;
    border-color: transparent;
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

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