/* ===================================
   Futuristic Theme Styles
   For Tracking and Payment Pages
   =================================== */

/* Futuristic Page Body */
.futuristic-page {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.futuristic-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 153, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 168, 225, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Page Hero */
.page-hero {
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 153, 0, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(0, 168, 225, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 153, 0, 0.2), transparent);
    background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
    animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
    0% {
        background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
    }
    100% {
        background-position: 200px 200px, 240px 260px, 330px 470px, 270px 300px;
    }
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* Glitch Text Effect */
.glitch-text {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #fff;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff9900;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00a8e1;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(8px, 9999px, 124px, 0);
    }
    20% {
        clip: rect(80px, 9999px, 90px, 0);
    }
    40% {
        clip: rect(133px, 9999px, 26px, 0);
    }
    60% {
        clip: rect(29px, 9999px, 62px, 0);
    }
    80% {
        clip: rect(107px, 9999px, 87px, 0);
    }
    100% {
        clip: rect(75px, 9999px, 140px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(91px, 9999px, 144px, 0);
    }
    20% {
        clip: rect(56px, 9999px, 133px, 0);
    }
    40% {
        clip: rect(6px, 9999px, 54px, 0);
    }
    60% {
        clip: rect(127px, 9999px, 10px, 0);
    }
    80% {
        clip: rect(35px, 9999px, 102px, 0);
    }
    100% {
        clip: rect(96px, 9999px, 76px, 0);
    }
}

.page-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Futuristic Input */
.futuristic-input {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 153, 0, 0.3);
    color: #fff;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.futuristic-input:focus {
    outline: none;
    border-color: #ff9900;
    background: rgba(255, 153, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3), inset 0 0 20px rgba(255, 153, 0, 0.1);
}

.futuristic-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Futuristic Button */
.btn-futuristic {
    position: relative;
    background: linear-gradient(135deg, #ff9900, #ffad33);
    color: #0a0e27;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-futuristic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-futuristic:hover::before {
    left: 100%;
}

.btn-futuristic:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 153, 0, 0.5);
}

.btn-futuristic .btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff9900, #00a8e1, #ff9900);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    animation: rotate-glow 3s linear infinite;
}

.btn-futuristic:hover .btn-glow {
    opacity: 1;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.btn-futuristic .btn-text {
    position: relative;
    z-index: 1;
}

.btn-futuristic .btn-icon {
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Tracking Interface */
.tracking-main,
.payment-main {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.tracking-interface {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.tracking-input-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tracking-input-panel h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.futuristic-tracking-form .input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.futuristic-tracking-form .input-wrapper input {
    flex: 1;
}

.form-help {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Tracking Results */
.tracking-results {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 168, 225, 0.2);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.scanner-animation {
    margin-bottom: 2rem;
    position: relative;
}

.scan-circle {
    fill: none;
    stroke: #ff9900;
    stroke-width: 2;
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

.scan-circle-1 {
    animation-delay: 0s;
}

.scan-circle-2 {
    animation-delay: 0.3s;
    stroke: #00a8e1;
}

.scan-circle-3 {
    animation-delay: 0.6s;
}

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

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff9900, transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 120px;
    }
}

/* Futuristic Timeline */
.futuristic-timeline {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.futuristic-timeline h3 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.timeline-track {
    position: relative;
    padding-left: 2rem;
}

.timeline-node {
    position: relative;
    padding: 1.5rem 0 1.5rem 3rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-node:last-child {
    border-left-color: transparent;
}

.timeline-node .node-icon {
    position: absolute;
    left: -16px;
    top: 1.5rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-node.completed .node-icon {
    background: rgba(6, 125, 98, 0.3);
    border-color: #067d62;
}

.timeline-node.completed .node-icon svg {
    stroke: #067d62;
}

.timeline-node.active .node-icon {
    background: rgba(255, 153, 0, 0.3);
    border-color: #ff9900;
    animation: pulse 2s ease-in-out infinite;
}

.timeline-node.active .node-icon svg {
    stroke: #ff9900;
}

.timeline-node.pending .node-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-node.pending .node-icon svg {
    stroke: rgba(255, 255, 255, 0.3);
}

.pulse-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #ff9900;
    border-radius: 50%;
    animation: pulse-ring 2s ease-in-out infinite;
    top: -6px;
    left: -6px;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.node-content h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.node-location,
.node-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

/* Tracking Map */
.tracking-map {
    margin-top: 3rem;
}

.tracking-map h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.map-placeholder {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 168, 225, 0.2);
    border-radius: 12px;
    padding: 4rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.map-placeholder svg {
    stroke: #00a8e1;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Tracking Features */
.tracking-features {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.tracking-features h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card-futuristic {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card-futuristic:hover {
    transform: translateY(-8px);
    border-color: #ff9900;
    box-shadow: 0 12px 40px rgba(255, 153, 0, 0.3);
}

.feature-card-futuristic .feature-icon {
    margin-bottom: 1rem;
}

.feature-card-futuristic .feature-icon svg {
    stroke: #ff9900;
}

.feature-card-futuristic h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card-futuristic p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* Payment Page Styles */
.payment-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.payment-form-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.payment-form-panel h2 {
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.form-group-futuristic {
    margin-bottom: 1.5rem;
}

.form-group-futuristic label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.form-group-futuristic textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row-inline {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.payment-method-card {
    position: relative;
    cursor: pointer;
}

.payment-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-card .method-content {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.payment-method-card .method-content svg {
    stroke: rgba(255, 255, 255, 0.6);
    transition: stroke 0.3s ease;
}

.payment-method-card .method-content span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
}

.payment-method-card:hover .method-content {
    border-color: rgba(255, 153, 0, 0.5);
}

.payment-method-card.active .method-content,
.payment-method-card input[type="radio"]:checked + .method-content {
    background: rgba(255, 153, 0, 0.2);
    border-color: #ff9900;
}

.payment-method-card.active .method-content svg,
.payment-method-card input[type="radio"]:checked + .method-content svg {
    stroke: #ff9900;
}

.method-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff9900, #00a8e1);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.payment-method-card.active .method-glow {
    opacity: 0.5;
}

/* Payment Summary Panel */
.payment-summary-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 168, 225, 0.2);
    border-radius: 12px;
    padding: 2rem;
    position: sticky;
    top: 100px;
}

.payment-summary-panel h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.summary-content {
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.summary-amount {
    font-weight: 600;
    color: #fff;
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.summary-total .summary-amount {
    color: #ff9900;
    font-size: 1.5rem;
}

.payment-features {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-features h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.payment-features ul {
    list-style: none;
    padding: 0;
}

.payment-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.payment-features li svg {
    stroke: #067d62;
    flex-shrink: 0;
}

.accepted-cards {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.accepted-cards p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-logos {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-logo {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-payment {
    width: 100%;
    margin-top: 1rem;
}

.security-badges {
    margin-top: 1.5rem;
    text-align: center;
}

.security-badges p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.security-badges svg {
    stroke: #067d62;
}

/* Security Section */
.security-section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.security-section h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.security-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 168, 225, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.security-card:hover {
    transform: translateY(-8px);
    border-color: #00a8e1;
    box-shadow: 0 12px 40px rgba(0, 168, 225, 0.3);
}

.security-card .security-icon {
    margin-bottom: 1rem;
}

.security-card .security-icon svg {
    stroke: #00a8e1;
}

.security-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.security-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }

    .payment-summary-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .glitch-text {
        font-size: 2rem;
    }

    .page-hero {
        padding: 4rem 0 3rem;
    }

    .futuristic-tracking-form .input-wrapper {
        flex-direction: column;
    }

    .form-row-inline {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }
}
