/* Green Travel E-SIM Complete Styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary-green: #10b981;
    --primary-green-hover: #059669;
    --primary-green-light: #d1fae5;
    --primary-green-dark: #065f46;
    --secondary-gray: #6b7280;
    --light-gray: #f3f4f6;
    --border-gray: #e5e7eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --danger-red: #ef4444;
    --warning-yellow: #f59e0b;
    --info-blue: #3b82f6;
    --success-green: var(--primary-green);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    
    --nav-height: 60px;
    --bottom-nav-height: 70px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #065f46 0%, #059669 25%, #10b981 50%, #34d399 75%, #6ee7b7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    margin-bottom: 3rem;
}

.logo-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s infinite;
}

.loading-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.loading-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

.loading-animation {
    max-width: 300px;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loading-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.loading-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Screen Overlays */
.screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.screen-overlay.hidden {
    display: none;
}

/* Language Selection */
.language-container {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.language-header h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.language-option {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.language-option:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-option.active {
    border-color: var(--primary-green);
    background: var(--primary-green-light);
}

.language-option .flag {
    font-size: 2rem;
}

.language-option .lang-name {
    font-weight: 500;
    color: var(--text-dark);
}

.language-option .lang-code {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Welcome Screen */
.welcome-container {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.welcome-hero {
    margin-bottom: 3rem;
}

.welcome-logo {
    margin-bottom: 2rem;
}

.welcome-logo .logo-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.welcome-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.welcome-logo p {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.welcome-hero h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.welcome-hero p {
    color: var(--text-light);
    font-size: 1rem;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.welcome-features {
    display: flex;
    justify-content: space-around;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    font-size: 1.5rem;
}

.feature-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Authentication Screens */
.auth-container {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    max-width: 450px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.back-button {
    position: absolute;
    left: 0;
    top: 0;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: color 0.2s ease;
}

.back-button:hover {
    color: var(--text-dark);
}

.auth-logo {
    width: 4rem;
    height: 4rem;
    background: var(--primary-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-gray);
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-tab:hover {
    color: var(--text-dark);
}

.auth-tab.active {
    color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.auth-content {
    min-height: 300px;
}

.signup-form,
.login-form {
    transition: opacity 0.3s ease;
}

.signup-form.hidden,
.login-form.hidden {
    display: none;
}

.form-space {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.input-group input,
.input-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-green);
}

.phone-input {
    display: flex;
    gap: 0.5rem;
}

.phone-input select {
    min-width: 80px;
}

.phone-input input {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-green);
}

.checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-light);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary-green);
}

.link-button {
    background: none;
    border: none;
    color: var(--primary-green);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
}

.link-button:hover {
    color: var(--primary-green-hover);
}

.social-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: var(--text-light);
    transform: translateY(-1px);
}

.social-btn.google {
    color: #dc2626;
}

.social-btn.facebook {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-btn.apple {
    background: #000;
    color: white;
    border-color: #000;
}

/* Buttons */
.btn-primary {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-green-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    background: var(--secondary-gray);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.w-full {
    width: 100%;
}

/* Main App Layout */
#appContainer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: white;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
}

.nav-center {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

#globalSearch {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-lg);
    background: var(--light-gray);
    transition: all 0.2s ease;
}

#globalSearch:focus {
    outline: none;
    border-color: var(--primary-green);
    background: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: color 0.2s ease;
}

.nav-icon-btn:hover {
    color: var(--text-dark);
}

.notification-badge,
.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.75rem;
    min-width: 1.25rem;
    text-align: center;
    display: none;
}

.language-switcher {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: background 0.2s ease;
}

.language-btn:hover {
    background: var(--light-gray);
}

.current-flag {
    font-size: 1.25rem;
}

.current-lang {
    font-weight: 500;
    color: var(--text-dark);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 200;
    margin-top: 0.5rem;
}

.language-dropdown.hidden {
    display: none;
}

.language-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-gray);
}

.language-dropdown-item:last-child {
    border-bottom: none;
}

.language-dropdown-item:hover {
    background: var(--light-gray);
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 200;
    margin-top: 0.5rem;
}

.user-dropdown.hidden {
    display: none;
}

.user-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.user-email {
    font-size: 0.875rem;
    color: var(--text-light);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    color: var(--text-dark);
}

.user-dropdown-item:hover {
    background: var(--light-gray);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-gray);
    margin: 0.5rem 0;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: white;
    border-top: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
    color: var(--text-light);
    min-width: 60px;
}

.nav-btn:hover,
.nav-btn.active {
    color: var(--primary-green);
}

.nav-btn i {
    font-size: 1.25rem;
}

.nav-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    margin-top: var(--nav-height);
    margin-bottom: var(--bottom-nav-height);
    padding: 2rem 1rem;
    min-height: calc(100vh - var(--nav-height) - var(--bottom-nav-height));
}

/* Content Sections */
.content-section {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.section-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-action {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
}

.card-action:hover {
    color: var(--text-dark);
    background: var(--light-gray);
}

.esim-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--secondary-gray);
}

.status-indicator.active {
    background: var(--success-green);
}

.status-title {
    font-weight: 600;
    color: var(--text-dark);
}

.status-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
}

.data-usage {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.usage-chart {
    position: relative;
    width: 80px;
    height: 80px;
}

.usage-info {
    flex: 1;
}

.usage-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.usage-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.impact-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

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

.impact-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
}

.impact-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

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

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--light-gray);
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

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

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-gray);
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--primary-green-light);
    color: var(--primary-green);
}

.action-btn i {
    font-size: 1.25rem;
}

.action-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Recommended Section */
.recommended-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Browse Section */
.browse-filters {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.zone-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.zone-btn {
    background: var(--light-gray);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.zone-btn:hover,
.zone-btn.active {
    background: var(--primary-green);
    color: white;
}

.view-toggle {
    display: flex;
    background: var(--light-gray);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.view-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.view-btn.active {
    background: white;
    box-shadow: var(--shadow-sm);
}

.search-filters {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.filter-input,
.filter-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    background: white;
    transition: border-color 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-green);
}

.filter-btn {
    background: none;
    border: 2px solid var(--border-gray);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-light);
}

.filter-btn:hover {
    border-color: var(--text-light);
    color: var(--text-dark);
}

.browse-results {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

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

#resultsCount {
    font-weight: 500;
    color: var(--text-dark);
}

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    background: white;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plans-grid.list-view {
    grid-template-columns: 1fr;
}

.plans-grid.list-view .plan-card {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.load-more-container {
    text-align: center;
}

.load-more-btn {
    background: var(--light-gray);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    background: var(--primary-green-light);
    color: var(--primary-green);
}

/* Plan Cards */
.plan-card {
    background: white;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.plan-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.plan-card.small {
    padding: 1rem;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.country-flag {
    font-size: 2rem;
}

.country-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.plan-zone {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: capitalize;
}

.plan-price {
    text-align: right;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: line-through;
    display: block;
}

.plan-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--text-light);
    width: 1rem;
}

.plan-highlights {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.highlight-tag {
    background: var(--primary-green-light);
    color: var(--primary-green-dark);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.plan-actions {
    display: flex;
    gap: 0.5rem;
}

.plan-actions .btn-secondary,
.plan-actions .btn-primary {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Cart Section */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-cart-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-cart h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cart-item-details h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.cart-item-details p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.cart-item-features {
    display: flex;
    gap: 0.5rem;
}

.feature-tag {
    background: var(--light-gray);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    color: var(--text-light);
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    background: var(--light-gray);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.quantity-controls button:hover {
    background: var(--primary-green-light);
    color: var(--primary-green);
}

.quantity {
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-price {
    font-weight: 700;
    color: var(--primary-green);
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger-red);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: background 0.2s ease;
}

.remove-item:hover {
    background: #fef2f2;
}

.cart-summary {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.summary-header {
    margin-bottom: 1rem;
}

.summary-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.summary-details {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.125rem;
    padding-top: 0.5rem;
    color: var(--primary-green);
}

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

.promo-code {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.promo-code input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
}

.promo-code input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.promo-code button {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
}

.promo-code button:hover {
    background: var(--primary-green-hover);
}

.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* My eSIMs Section */
.esims-tabs {
    display: flex;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-light);
}

.tab-btn.active {
    background: var(--primary-green);
    color: white;
    box-shadow: var(--shadow-sm);
}

.esims-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.empty-esims {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.empty-esims-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-esims h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-esims p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.esim-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.esim-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.esim-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.esim-country {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.esim-info h3 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.esim-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: var(--primary-green-light);
    color: var(--primary-green-dark);
}

.status-badge.expired {
    background: #fef2f2;
    color: var(--danger-red);
}

.status-badge.pending {
    background: #fefbeb;
    color: var(--warning-yellow);
}

.esim-usage {
    margin-bottom: 1.5rem;
}

.usage-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.usage-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--light-gray);
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.usage-progress {
    height: 100%;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.esim-actions {
    display: flex;
    gap: 0.5rem;
}

.esim-actions .btn-secondary {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.esim-expired-info,
.esim-pending-info {
    text-align: center;
    padding: 1rem 0;
}

.esim-expired-info p,
.esim-pending-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Profile Section */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    position: relative;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-green);
    color: white;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-lg);
    font-size: 0.75rem;
    font-weight: 500;
}

.badge.eco-warrior {
    background: var(--primary-green-light);
    color: var(--primary-green-dark);
}

.badge.frequent-traveler {
    background: #dbeafe;
    color: #1e40af;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-section {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.profile-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
    transition: background 0.2s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: var(--light-gray);
    margin: 0 -1.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-weight: 500;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.setting-desc {
    font-size: 0.875rem;
    color: var(--text-light);
}

.setting-action {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
}

/* Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.overlay-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--light-gray);
    color: var(--text-dark);
}

.cart-overlay-content {
    max-width: 600px;
}

.cart-overlay-items {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-overlay-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.cart-overlay-item:last-child {
    border-bottom: none;
}

.cart-overlay-item .item-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.country-name {
    font-weight: 500;
    color: var(--text-dark);
}

.item-quantity {
    color: var(--text-light);
}

.cart-overlay-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-gray);
    background: var(--light-gray);
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 1rem;
}

.cart-actions {
    display: flex;
    gap: 0.75rem;
}

.cart-actions .btn-secondary,
.cart-actions .btn-primary {
    flex: 1;
}

.empty-cart-overlay {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Notifications */
.cart-notification {
    position: fixed;
    top: calc(var(--nav-height) + 1rem);
    right: 1rem;
    background: white;
    border: 1px solid var(--primary-green);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 1500;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .nav-center {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .auth-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .language-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .welcome-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .zone-filters {
        justify-content: center;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .esims-content {
        grid-template-columns: 1fr;
    }
    
    .overlay-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
    }
    
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-actions {
        gap: 0.75rem;
    }
    
    .welcome-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: row;
        justify-content: center;
    }
    
    .plan-features {
        grid-template-columns: 1fr;
    }
    
    .plan-actions {
        flex-direction: column;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .esim-actions {
        flex-direction: column;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

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

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

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

/* Print Styles */
@media print {
    .top-nav,
    .bottom-nav,
    .overlay,
    .loading-screen {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .content-section {
        display: block !important;
    }
}