/* TradeRoute - Global Shipping Platform Styles */
/* Design System: Copper & Slate with Brutalist touches */

:root {
    /* Copper & Slate Palette */
    --primary: #B87333;
    --primary-light: #D4A574;
    --primary-dark: #8B5A2B;
    --slate: #2F3640;
    --slate-light: #4A5568;
    --slate-dark: #1A1D23;
    --cream: #F5F0EB;
    --cream-dark: #E8E0D5;
    --white: #FFFFFF;
    --black: #1A1A1A;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Typography */
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 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);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--slate);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.4s ease;
}

.screen.active {
    display: block;
}

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

/* Auth Screen */
#auth-screen {
    background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.logo-mark {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin: 0 auto var(--space-md);
    font-weight: 700;
    letter-spacing: -1px;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--slate);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.875rem;
    color: var(--slate-light);
    font-weight: 500;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    background: var(--cream);
    padding: 4px;
    border-radius: var(--radius-md);
}

.auth-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: none;
    background: transparent;
    color: var(--slate-light);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: var(--white);
    color: var(--slate);
    box-shadow: var(--shadow-sm);
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: slideUp 0.3s ease;
}

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

.input-group {
    margin-bottom: var(--space-md);
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--slate);
    background: var(--white);
    transition: all var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.input-group input::placeholder {
    color: #9CA3AF;
}

.toggle-password {
    position: absolute;
    right: var(--space-md);
    bottom: var(--space-md);
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--slate-light);
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.checkbox.terms {
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.checkbox.terms a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(184, 115, 51, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.4);
}

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

/* Social Auth */
.social-auth {
    margin-top: var(--space-xl);
}

.divider {
    position: relative;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--cream-dark);
}

.divider span {
    position: relative;
    background: var(--white);
    padding: 0 var(--space-md);
    font-size: 0.8125rem;
    color: var(--slate-light);
}

.social-buttons {
    display: flex;
    gap: var(--space-md);
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--white);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.social-btn svg {
    width: 20px;
    height: 20px;
}

/* Auth Footer */
.auth-footer {
    margin-top: var(--space-xl);
    text-align: center;
}

.auth-footer p {
    font-size: 0.75rem;
    color: var(--slate-light);
    margin-bottom: var(--space-sm);
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.badge {
    padding: 4px 10px;
    background: var(--cream);
    border-radius: 20px;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main App Layout */
#main-screen {
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--cream);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm) 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid var(--cream-dark);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    color: var(--slate-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex: 1;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.nav-item span {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active svg {
    transform: scale(1.1);
}

/* App Screens */
.app-screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.app-screen.active {
    display: block;
}

/* Screen Header */
.screen-header {
    background: var(--white);
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--cream-dark);
}

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

.user-greeting .greeting {
    display: block;
    font-size: 0.8125rem;
    color: var(--slate-light);
    margin-bottom: 2px;
}

.user-greeting h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--slate);
    letter-spacing: -0.5px;
}

.notification-btn {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--cream);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notification-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--slate);
}

.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--error);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* Dashboard Content */
.dashboard-content {
    padding: var(--space-lg);
}

/* Map Section */
.map-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-md) 0;
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

#world-map {
    height: 200px;
    margin-top: var(--space-md);
    background: var(--slate-dark);
}

.map-overlay {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
}

.stat-card {
    flex: 1;
    text-align: center;
    padding: var(--space-md);
    background: var(--cream);
    border-radius: var(--radius-md);
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate);
}

.stat-label {
    font-size: 0.625rem;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: var(--space-lg);
}

.quick-actions h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: var(--space-md);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

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

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.action-icon.ship { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.action-icon.trader { background: linear-gradient(135deg, #10B981, #059669); }
.action-icon.payment { background: linear-gradient(135deg, #F59E0B, #D97706); }
.action-icon.track { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }

.action-card span {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--slate);
    text-align: center;
}

/* Recent Activity */
.recent-activity {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.recent-activity .section-header {
    padding: 0 0 var(--space-md);
}

.view-all {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--cream);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.activity-icon.delivered { background: var(--success); }
.activity-icon.payment { background: var(--primary); }
.activity-icon.transit { background: var(--info); }

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 2px;
}

.activity-subtitle {
    font-size: 0.75rem;
    color: var(--slate-light);
    margin-bottom: 4px;
}

.activity-time {
    font-size: 0.625rem;
    color: #9CA3AF;
}

.activity-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.activity-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.activity-status.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* Traders Screen */
#traders-screen .screen-header {
    background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
    color: var(--white);
    border-bottom: none;
}

#traders-screen .screen-header h2 {
    color: var(--white);
    font-family: var(--font-display);
}

.filter-btn {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filter-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

.search-bar {
    padding: var(--space-md) var(--space-lg);
    background: var(--slate);
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 44px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-icon {
    position: absolute;
    left: calc(var(--space-lg) + var(--space-md));
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: rgba(255,255,255,0.5);
}

.filter-chips {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--slate);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.chip {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 20px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip.active {
    background: var(--primary);
}

.traders-list {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.trader-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.trader-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.trader-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
}

.trader-info {
    flex: 1;
}

.trader-info h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 2px;
}

.trader-info p {
    font-size: 0.75rem;
    color: var(--slate-light);
}

.trust-score {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--cream);
    border-radius: var(--radius-sm);
}

.trust-score svg {
    width: 14px;
    height: 14px;
    fill: var(--warning);
}

.trust-score span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate);
}

.trader-tags {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tag {
    padding: 4px 8px;
    background: var(--cream);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.trader-stats {
    display: flex;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--cream);
    border-bottom: 1px solid var(--cream);
    margin-bottom: var(--space-md);
}

.trader-stats .stat {
    text-align: center;
}

.trader-stats .value {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate);
}

.trader-stats .label {
    font-size: 0.625rem;
    color: var(--slate-light);
    text-transform: uppercase;
}

.btn-connect {
    width: 100%;
    padding: var(--space-sm);
    background: var(--slate);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-connect:hover {
    background: var(--slate-dark);
}

/* Shipments Screen */
.shipment-tabs {
    display: flex;
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    gap: var(--space-md);
    border-bottom: 1px solid var(--cream-dark);
}

.shipment-tab {
    padding: var(--space-sm) 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-light);
    cursor: pointer;
    position: relative;
}

.shipment-tab.active {
    color: var(--slate);
}

.shipment-tab.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.shipments-list {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.shipment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}

.shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.shipment-id {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate);
}

.shipment-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.shipment-status.in-transit {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.shipment-status.loading {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.shipment-route {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-md) 0;
}

.origin, .destination {
    text-align: center;
}

.origin .city, .destination .city {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--slate);
}

.origin .country, .destination .country {
    font-size: 0.625rem;
    color: var(--slate-light);
    text-transform: uppercase;
}

.route-line {
    flex: 1;
    height: 3px;
    background: var(--cream-dark);
    border-radius: 2px;
    position: relative;
}

.route-line .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
    transition: width 1s ease;
}

.ship-icon {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.ship-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
}

.shipment-details {
    display: flex;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--cream);
    border-bottom: 1px solid var(--cream);
    margin-bottom: var(--space-md);
}

.detail {
    text-align: center;
}

.detail .label {
    display: block;
    font-size: 0.625rem;
    color: var(--slate-light);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.detail .value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate);
}

.shipment-actions {
    display: flex;
    gap: var(--space-md);
}

.btn-track, .btn-details {
    flex: 1;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-track {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.btn-details {
    background: var(--cream);
    color: var(--slate);
    border: none;
}

/* Payments Screen */
.balance-card {
    background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg);
    color: var(--white);
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.balance-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.more-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.more-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.balance-amount {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.balance-currency {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-lg);
}

.balance-actions {
    display: flex;
    gap: var(--space-md);
}

.balance-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.balance-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.escrow-section {
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-lg);
}

.escrow-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: var(--space-md);
}

.escrow-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.escrow-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.escrow-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.escrow-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 2px;
}

.escrow-desc {
    font-size: 0.75rem;
    color: var(--slate-light);
}

.transactions-section {
    padding: 0 var(--space-lg);
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.transaction-icon.received { background: var(--success); }
.transaction-icon.sent { background: var(--error); }
.transaction-icon.fee { background: var(--warning); }

.transaction-content {
    flex: 1;
}

.transaction-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 2px;
}

.transaction-subtitle {
    font-size: 0.75rem;
    color: var(--slate-light);
    margin-bottom: 4px;
}

.transaction-time {
    font-size: 0.625rem;
    color: #9CA3AF;
}

.transaction-amount {
    font-size: 0.9375rem;
    font-weight: 700;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--slate);
}

/* Profile Screen */
.profile-header {
    background: linear-gradient(135deg, var(--slate) 0%, var(--slate-dark) 100%);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    color: var(--white);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--space-md);
    border: 4px solid rgba(255,255,255,0.2);
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.profile-company {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-md);
}

.profile-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
}

.profile-badges .badge {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: var(--space-lg);
    background: var(--white);
    margin-bottom: var(--space-lg);
}

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

.stat-item .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate);
}

.stat-item .stat-label {
    font-size: 0.625rem;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-menu {
    padding: 0 var(--space-lg);
}

.menu-group {
    background: var(--white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: none;
    border: none;
    border-bottom: 1px solid var(--cream);
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition-fast);
}

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

.menu-item:hover {
    background: var(--cream);
}

.menu-icon {
    width: 40px;
    height: 40px;
    background: var(--cream);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--slate);
}

.menu-item span {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--slate);
}

.menu-item .arrow {
    width: 20px;
    height: 20px;
    fill: var(--slate-light);
}

.logout-btn {
    width: 100%;
    padding: var(--space-md);
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--error);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    margin-bottom: var(--space-xl);
}

.logout-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive Design */
@media (min-width: 768px) {
    .auth-container {
        max-width: 480px;
        padding: var(--space-2xl);
    }
    
    .action-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    #world-map {
        height: 280px;
    }
}

@media (max-width: 380px) {
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-card span {
        font-size: 0.625rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .btn-primary:hover,
    .action-card:hover,
    .btn-connect:hover {
        transform: none;
    }
    
    .nav-item:active {
        opacity: 0.7;
    }
}

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    #main-screen {
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
}