/* CSS Custom Variables for curated elegant dark theme */
:root {
    --bg-dark: #070a13;
    --card-bg: linear-gradient(135deg, rgba(20, 25, 43, 0.85) 0%, rgba(9, 12, 22, 0.95) 100%);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-glow: rgba(99, 102, 241, 0.15);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Contact Brand Colors (Sophisticated Dark Variations) */
    --call-bg: rgba(52, 168, 83, 0.06);
    --call-border: rgba(52, 168, 83, 0.2);
    --call-color: #4ade80;
    
    --sms-bg: rgba(59, 130, 246, 0.06);
    --sms-border: rgba(59, 130, 246, 0.2);
    --sms-color: #60a5fa;
    
    --wa-bg: rgba(37, 211, 102, 0.06);
    --wa-border: rgba(37, 211, 102, 0.2);
    --wa-color: #34d399;
    
    --mail-bg: rgba(239, 68, 68, 0.06);
    --mail-border: rgba(239, 68, 68, 0.2);
    --mail-color: #f87171;
}

/* Reset and Core Layout */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-sans);
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* Ambient Radial Glow in background */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(7, 10, 19, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.ambient-particle {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(7, 10, 19, 0) 75%);
    top: 15%;
    right: 10%;
    pointer-events: none;
    z-index: 0;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

/* Container */
.page-container {
    width: 100%;
    max-width: 390px; /* Target perfect mobile width */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    z-index: 1;
}

/* Card Wrapper */
.tilt-wrapper {
    width: 100%;
}

.wallet-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5), 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 50px var(--accent-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* Card Header styles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.luggage-icon {
    width: 18px;
    height: 18px;
    color: #818cf8;
}

.tag-title {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #94a3b8;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.8s infinite;
}

.status-text {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 0.5px;
}

/* Card Hero - Message */
.card-hero {
    padding: 24px 24px 18px;
}

.main-heading {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Perforation design */
.perforation {
    display: flex;
    align-items: center;
    height: 20px;
    position: relative;
}

.perforation .circle {
    width: 14px;
    height: 20px;
    background-color: var(--bg-dark);
    position: absolute;
    z-index: 2;
}

.perforation .circle.left {
    left: -1px;
    border-radius: 0 10px 10px 0;
    border: 1px solid var(--card-border);
    border-left: none;
}

.perforation .circle.right {
    right: -1px;
    border-radius: 10px 0 0 10px;
    border: 1px solid var(--card-border);
    border-right: none;
}

.perforation .line {
    width: 100%;
    height: 1px;
    border-top: 1.5px dashed rgba(255, 255, 255, 0.12);
    margin: 0 12px;
}

/* Card Profile Section */
.card-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
}

.avatar-ring {
    padding: 2px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.owner-name {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.owner-title {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Contact actions layout */
.contact-section {
    padding: 16px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 4px;
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    -webkit-tap-highlight-color: transparent;
}

.btn-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-text {
    color: #f8fafc;
}

/* Individual Action Colors & Glows */
.call-btn {
    background: var(--call-bg);
    border-color: var(--call-border);
}
.call-btn .btn-icon { color: var(--call-color); }
.call-btn:active {
    background: rgba(52, 168, 83, 0.12);
    box-shadow: 0 0 15px rgba(52, 168, 83, 0.25);
    transform: scale(0.96);
}

.sms-btn {
    background: var(--sms-bg);
    border-color: var(--sms-border);
}
.sms-btn .btn-icon { color: var(--sms-color); }
.sms-btn:active {
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
    transform: scale(0.96);
}

.wa-btn {
    background: var(--wa-bg);
    border-color: var(--wa-border);
}
.wa-btn .btn-icon { color: var(--wa-color); }
.wa-btn:active {
    background: rgba(37, 211, 102, 0.12);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.25);
    transform: scale(0.96);
}

.mail-btn {
    background: var(--mail-bg);
    border-color: var(--mail-border);
}
.mail-btn .btn-icon { color: var(--mail-color); }
.mail-btn:active {
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
    transform: scale(0.96);
}

/* Card Footer styles (Perforated ticket style) */
.card-footer {
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.barcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.barcode-svg {
    width: 80%;
    height: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.barcode-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
}

/* Page Footer Text */
.tag-footer-info {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    letter-spacing: 0.5px;
    animation: fadeIn 1s ease-out;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes floatGlow {
    0% {
        transform: translateY(0px) scale(1);
    }
    100% {
        transform: translateY(-30px) scale(1.15);
    }
}

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

/* Media query for wider screens to simulate mobile card layout perfectly */
@media (min-width: 420px) {
    body {
        background-color: #05070d;
    }
}
