:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(30, 30, 32, 0.7);
    --card-border: rgba(255, 255, 255, 0.05);
    --voucher-bg: rgba(45, 45, 48, 0.6);
    --input-bg: rgba(20, 20, 22, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a5;
    --accent-blue: #00d2ff;
    --accent-blue-hover: #00a8cc;
    --accent-blue-glow: rgba(0, 210, 255, 0.3);
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    background: radial-gradient(circle at top right, #1a1a24 0%, #0d0d0d 60%);
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Soft glowing background element */
    overflow-x: hidden;
}

.app-container::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: rgba(0, 210, 255, 0.05);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0 4px;
}

.header-text h1 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.header-text .url {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: monospace;
    letter-spacing: -0.2px;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.menu-btn:hover {
    transform: scale(1.1);
}

/* Main Card */
.main-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

/* Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.logo-circle {
    width: 70px;
    height: 70px;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.15);
    border: 1px solid rgba(0, 210, 255, 0.1);
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #3a7bd5;
}

.logo-text span {
    color: #00d2ff;
}

/* Typography */
.welcome-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.login-prompt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 20px;
    max-width: 85%;
}

.help-section {
    text-align: center;
    margin-bottom: 16px;
}

.help-text {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.phone-link {
    color: var(--text-primary);
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 600;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: var(--accent-blue);
}

/* Buttons */
.btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #000000;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.btn-large {
    padding: 16px;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* Voucher Section */
.voucher-section {
    width: 100%;
    background: var(--voucher-bg);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--card-border);
}

.voucher-section h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.input-group {
    width: 100%;
    margin-bottom: 12px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
}

.input-group input:focus {
    border-color: rgba(0, 210, 255, 0.5);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.voucher-section .btn {
    padding: 14px;
    font-size: 1rem;
}

/* Divider */
.divider {
    text-align: center;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Packages Section */
.packages-section {
    width: 100%;
}

.packages-title {
    color: var(--accent-blue);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 16px;
    font-style: italic;
    font-weight: 600;
}

/* Toggle */
.toggle-container {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid var(--card-border);
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toggle-btn svg {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-btn.active svg {
    opacity: 1;
}

/* Plans List */
.plans-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.4s ease forwards;
}

.plans-list.hidden {
    display: none;
}

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

.plan-card {
    background: var(--voucher-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    background: rgba(55, 55, 60, 0.6);
}

.plan-card.highlighted {
    border: 1px solid rgba(0, 210, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
    background: linear-gradient(180deg, rgba(45, 45, 48, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
    position: relative;
}

.badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--accent-blue);
    color: black;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-price {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    margin-top: 4px;
}

.plan-details-header {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.plan-duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.plan-btn {
    padding: 12px;
    font-size: 0.95rem;
}

.plan-card.highlighted .plan-duration {
    margin-bottom: 12px;
}

/* Ripple Animation */
@keyframes animateRipple {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.5;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 24px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.terms-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.terms-link:hover {
    opacity: 0.8;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
/* Payment Modal Specific */
.payment-content {
    background: #111113;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 380px !important;
    padding: 32px 24px !important;
    animation: modalSlideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-package-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.price-tag {
    margin-bottom: 32px;
}

.price-tag .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
    line-height: 2;
}

.price-tag .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.payment-form {
    width: 100%;
    margin-bottom: 24px;
}

.payment-form .form-group {
    text-align: left;
}

.payment-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 4px;
}

.payment-form input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.payment-form input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.payment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.payment-actions .btn {
    padding: 18px !important;
    font-size: 1.1rem !important;
    height: auto !important;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.payment-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Modal utility */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #0d0d0d;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
