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

        input, textarea {
            touch-action: manipulation;
        }

        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --secondary: #ec4899;
            --dark: #1e293b;
            --gray: #64748b;
            --light-gray: #f1f5f9;
            --white: #ffffff;
            --gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
            --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
           --error: #ef4444;
            --success: #22c55e;
        --border: #e2e8f0;

        }
        .signal-bars {
            display: flex;
            gap: 2px;
            align-items: end;
        }

   .remember-me {
            display: flex;
            align-items: center;
        }
  .btn {
            flex: 1;
            padding: 12px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
        }

.btn:disabled {
    background-color: #cccccc; /* Lighter gray background */
    color: #666666; /* Darker gray text */
    cursor: not-allowed; /* Change cursor to indicate it's not clickable */
    opacity: 0.7; /* Optional: reduce opacity for a more faded look */
}
        .btn-primary {
            background: #007aff;
            color: white;
        }

        .btn-primary:enabled:hover {
            background: #0056cc;
        }

        .btn-secondary {
            background: #f2f2f7;
            color: #007aff;
            border: 1px solid #d1d1d6;
        }

        .btn-secondary:enabled:hover {
            background: #e5e5ea;
        }

        .warning-card {
            background: #fff2cc;
            border: 1px solid #ffcc02;
            border-radius: 8px;
            padding: 8px;
            margin-top: 10px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .warning-icon {
            color: #ff9500;
            font-size: 18px;
        }

        .warning-text {
            font-size: 14px;
            color: #1d1d1f;
        }

        /* Modern Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .modal-container {
            background: white;
            border-radius: 16px;
            padding: 32px;
            max-width: 480px;
            width: 90%;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            transform: scale(0.9) translateY(16px);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }

        .modal-overlay.show .modal-container {
            transform: scale(1) translateY(0);
        }

        .modal-icon {
            width: 64px;
            height: 64px;
            margin: 0 auto 24px;
            background: linear-gradient(135deg, #22c55e, #16a34a);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: modalIconPulse 1s ease-out;
        }

        .modal-icon svg {
            width: 32px;
            height: 32px;
            color: white;
        }

        @keyframes modalIconPulse {
            0% {
                transform: scale(0);
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }

        .modal-title {
            font-size: 24px;
            font-weight: 700;
            color: #1f2937;
            text-align: center;
            margin-bottom: 12px;
        }

        .modal-message {
            font-size: 16px;
            color: #6b7280;
            text-align: center;
            line-height: 1.5;
            margin-bottom: 32px;
        }

        .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
        }

        .modal-btn {
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            min-width: 120px;
        }

        .modal-btn-primary {
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            color: white;
        }

        .modal-btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        }

        .modal-btn-secondary {
            background: #f3f4f6;
            color: #374151;
            border: 1px solid #d1d5db;
        }

        .modal-btn-secondary:hover {
            background: #e5e7eb;
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            font-size: 24px;
            color: #9ca3af;
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .modal-close:hover {
            background: #f3f4f6;
            color: #374151;
        }

        /* Error Modal Variant */
        .modal-icon.error {
            background: linear-gradient(135deg, #ef4444, #dc2626);
        }

        .modal-icon.error svg {
            color: white;
        }

        @media (max-width: 480px) {
            .plan-details {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .detail-item {
                display: flex;
                justify-content: space-between;
                text-align: left;
            }

            .actions {
                flex-direction: column;
            }
        }
        


 .actions {
            display: flex;
            gap: 12px;
            position: relative;
            z-index: 1;
        }

        .plan-card .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #ffffff;
            font-weight: 600;
            border: none;
        }

        .plan-card .btn-primary:hover {
            background: linear-gradient(135deg, #5568d3 0%, #6a3f91 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }

        .plan-card .btn-secondary {
            background: rgba(100, 116, 139, 0.1);
            color: #475569;
            border: 1px solid rgba(100, 116, 139, 0.2);
        }

        .plan-card .btn-secondary:hover {
            background: rgba(100, 116, 139, 0.15);
            border-color: rgba(100, 116, 139, 0.3);
        }



.plan-card {
            background:
                linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 242, 245, 0.9) 100%);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 16px;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.8),
                inset 0 -1px 0 rgba(0, 0, 0, 0.05);
            display: grid;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.6);
            backdrop-filter: blur(20px);
        }

        .plan-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
            pointer-events: none;
        }

        .plan-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
            pointer-events: none;
        }

        .plan-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
            position: relative;
            z-index: 1;
        }

        .plan-title {
            font-size: 22px;
            font-weight: 600;
            color: #1e293b;
            text-shadow: 0 1px 2px rgba(255,255,255,0.5);
        }

        .plan-region {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 15px;
            color: #8e8e93;
            margin-top: 4px;
        }

        .flag {
            font-size: 16px;
        }

        .status-badge {
            padding: 6px 12px;
            border-radius: 0 0 0 12px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            z-index: 2;
        }

        .status-badge-active, .status-badge-Active {
            background: rgba(16, 185, 129, 0.95);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
        }

        .status-badge-inactive, .status-badge-Inactive {
            background: rgba(239, 68, 68, 0.95);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
        }

        .status-badge-expired, .status-badge-Expired {
            background: rgba(245, 158, 11, 0.95);
            color: #ffffff;
            animation: pulse 2s infinite;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
        }

        .status-badge-ready, .status-badge-Ready {
            background: rgba(59, 130, 246, 0.95);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
        }

        /* Legacy pending status (deprecated - use ready) */
        .status-badge-pending, .status-badge-Pending {
            background: rgba(59, 130, 246, 0.95);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
        }

        .status-badge-refunded, .status-badge-Refunded {
            background: rgba(156, 163, 175, 0.95);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(156, 163, 175, 0.4);
        }

        .status-badge-blocked, .status-badge-Blocked,
        .status-badge-cancelled, .status-badge-Cancelled {
            background: rgba(239, 68, 68, 0.95);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
        }
        
         @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
.page-title {
            font-size: 24px;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 8px;
            text-align: left;
        }
        
        .page-subtitle {
            color: #6b7280;
            margin-bottom: 30px;
            text-align: left;
        }
  .verified-email {
            background: #f0fdf4;
            border: 1px solid #22c55e;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 24px;
            display: flex;
            align-items: center;
        }
        
        .verified-email .icon {
            color: #22c55e;
            margin-right: 12px;
            font-size: 20px;
        }
        
        .verified-email .text {
            color: #166534;
            font-weight: 500;
            word-break: break-all;
        }
        
 .alert-banner {
            background: linear-gradient(135deg, #fff3cd, #ffeaa7);
            border: 1px solid #ffc107;
            border-radius: 12px;
            padding: 16px 20px;
            margin-bottom: 18px;
            margin-top: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .alert-icon {
            font-size: 20px;
            color: #856404;
        }

        .alert-content {
            flex: 1;
        }



        .alert-title {
            font-size: 16px;
            font-weight: 600;
            color: #856404;
            margin-bottom: 4px;
        }

        .alert-text {
            font-size: 14px;
            color: #856404;
        }

        .alert-action {
            background: #ffc107;
            color: #856404;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .alert-action:hover {
            background: #e0a800;
        }


        .section-header-grid
        
        {
            width:100%;
            max-width: 1050px;
        }
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            margin-top: 16px;
            width: 100;


        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: #1d1d1f;
            white-space: nowrap;
            margin-bottom: 8px;
            margin-top: 8px;
            
        }

        .add-plan-btn {
            background: #007aff;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.2s ease;
        }

        .big-plan-btn {
            background: #007aff;
            width: 60%;
            height: 30px;
            color: white;
            border: 10px;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: background 0.2s ease;
        }

@media (max-width: 768px) {
    .add-plan-btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
}

        .add-plan-btn:hover {
            background: #0056cc;
        }

        .usage-section {
            margin-bottom: 20px;
        }

        .usage-bar {
            width: 100%;
            height: 8px;
            background: #e5e5ea;
            border-radius: 4px;
            overflow: hidden;
            margin: 8px 0;
        }

        .usage-fill {
            height: 100%;
            background: linear-gradient(90deg, #34c759, #30d158);
            border-radius: 4px;
            transition: width 0.3s ease;
        }

        .usage-text {
            display: flex;
            justify-content: space-between;
            font-size: 15px;
            margin-bottom: 4px;
        }

        .usage-used {
            font-weight: 600;
            color: #1d1d1f;
        }

        .usage-total {
            color: #8e8e93;
        }

        .plan-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 20px;
            position: relative;
            z-index: 1;
        }

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

        .detail-label {
            font-size: 13px;
            color: #64748b;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .detail-value {
            font-size: 16px;
            font-weight: 600;
            color: #1e293b;
        }

        .expires-soon {
            color: #ff9500;
        }




        .bar {
            width: 3px;
            background: #000;
            border-radius: 1px;
        }
        .bar:nth-child(1) { height: 4px; }
        .bar:nth-child(2) { height: 6px; }
        .bar:nth-child(3) { height: 8px; }
        .bar:nth-child(4) { height: 10px; opacity: 0.3; }

        .flex-container
        {
            display: flex;
            flex-direction: column;
            min-height: 300px;
            justify-content: space-between; 
            
        }

        .flex-contents
        {
            align-items:center;
            
        }
        .battery {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .battery-icon {
            width: 24px;
            height: 12px;
            border: 1px solid #000;
            border-radius: 2px;
            position: relative;
            background: #000;
        }

        .battery-icon::after {
            content: '';
            position: absolute;
            right: -3px;
            top: 3px;
            width: 2px;
            height: 6px;
            background: #000;
            border-radius: 0 1px 1px 0;
        }


.status-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 20px 8px;
            background: #fff;
            font-size: 17px;
            font-weight: 600;
        }

        .status-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .status-right {
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 15px;
        }
        
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            font-variant-numeric: tabular-nums;
            background: #f8fafc;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            }
        
        
        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            background: var(--gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-decoration: none;
            min-width: 120px;
        }
        
        
        
        .nav-menu {
            display: none;
        }
        
        .nav-link
        {
        text-wrap: nowrap;
        font-size: 1.1rem;
        padding-bottom: 2px;
            }
        
        .cta-button {
            background: var(--gradient);
            color: var(--white);
            padding: 0.75rem 1.5rem;
            border-radius: 2rem;
            text-decoration: none;
            font-weight: 600;
            transition: transform 0.2s ease;
        }
        
        .cta-button:hover {
            transform: translateY(+2px);
        }
        
        .user-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .user-email {
            font-size: 15px;
            color: #8e8e93;
        }
        
        
        
        .user-menu {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        nav.legacy-nav
        {
          display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            z-index: 10;
            padding: 0 0 0 10px;
            /* Prevent mobile scrolling parallax effect */
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
           /* display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            height:110px;
            background-color: blue;
            display: flex;
            justify-content: space-between;
            align-items: center;          
           
            margin: 0 auto;
            
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
*/
        
        }
        
        
        
 .links-container {
            height: 2rem;
            display: flex;
            flex-direction: row;
            align-items: center;
        }

        .links-container a {
            height: 100%;
            padding: 0 20px;
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .links-container a:hover {
            //color: var(--primary);
        }

        .links-container a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 20px;
            right: 20px;
            height: 3px;
            background: var(--gradient);
            transition: all 0.3s ease;
            transform: scaleX(0);
            transform-origin: center;
        }

        .links-container a:hover::after {
            transform: scaleX(1);
        }

        /* Remove hover line from CTA button */
        .links-container a.cta-button::after {
            display: none;
        }
                

     .nav-credit {
            background: #f0fdf4;
            color: #16a34a;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
            border: 1.5px solid #86efac;
            margin-right: 12px;
            display: flex;
            align-items: center;
        }

        .nav-credit::before {
            content: '💰';
            margin-right: 6px;
            font-size: 16px;
        }

     .cta-button {
            background: var(--gradient);
            color: var(--white);
            padding: 12px 24px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
            margin-left: 20px;
        }
        
          .cta-button:hover {
            transform: translateY(+2px);
            box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
        }



/* Phones: keep form controls at >=16px so iOS Safari doesn't auto-zoom on focus
   (the viewport meta no longer disables user zoom — accessibility requirement) */
@media (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    select,
    textarea {
        font-size: 16px !important;
    }
}
