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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #1a1a2e;
    color: #fff;
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 24px;
    color: #e94560;
}

h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e94560;
}

h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #fff;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    border-radius: 8px;
    background: #16213e;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.tab-btn.active {
    background: #e94560;
}

.tab-content {
    display: none;
}

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

/* Plans */
.plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.plan-btn {
    padding: 20px 12px;
    border: 2px solid #16213e;
    border-radius: 12px;
    background: #0f3460;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.plan-btn:hover {
    border-color: #e94560;
    transform: translateY(-2px);
}

.plan-btn .price {
    font-size: 20px;
    font-weight: bold;
}

.plan-btn .period {
    font-size: 12px;
    color: #aaa;
}

/* Payment status */
#payment-status {
    margin-top: 20px;
    padding: 20px;
    background: #16213e;
    border-radius: 8px;
    text-align: center;
}

.status-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.hidden {
    display: none;
}

/* Instruction */
.platform-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #16213e;
    border-radius: 12px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #e94560;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* My VPN */
.vpn-status {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.status-card {
    padding: 16px;
    background: #16213e;
    border-radius: 12px;
}

.status-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.status-value {
    font-size: 16px;
    font-weight: 500;
}

.status-value.active {
    color: #4ade80;
}

#vpn-config {
    margin-bottom: 20px;
}

#vpn-config h3 {
    margin-bottom: 12px;
}

.config-box {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px;
    background: #16213e;
    border-radius: 8px;
}

.config-box code {
    flex: 1;
    font-size: 12px;
    word-break: break-all;
    color: #e94560;
}

.copy-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #e94560;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-btn:hover {
    background: #c73650;
}

.action-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #e94560;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.action-btn:hover {
    background: #c73650;
}

/* Platega Payment Form */
.platega-header {
    text-align: center;
    margin-bottom: 20px;
}

.platega-logo {
    font-size: 24px;
    font-weight: bold;
    color: #4ade80;
    margin-bottom: 4px;
}

.platega-secure {
    font-size: 12px;
    color: #888;
}

.payment-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #16213e;
    border-radius: 12px;
    margin-bottom: 20px;
}

.payment-summary span:first-child {
    font-size: 14px;
    color: #aaa;
}

.payment-total {
    font-size: 20px;
    font-weight: bold;
    color: #e94560;
}

.payment-note {
    margin-bottom: 16px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.45;
}

.card-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 12px;
    color: #888;
}

.input-group input {
    padding: 14px 16px;
    border: 2px solid #16213e;
    border-radius: 10px;
    background: #0f3460;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #e94560;
}

.input-group input::placeholder {
    color: #555;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pay-btn {
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #4ade80;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.pay-btn:hover {
    background: #22c55e;
}

.pay-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.back-link {
    display: block;
    margin-top: 16px;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

.back-link:hover {
    color: #fff;
}
