/* JUD Hardware Wallet - Professional Crypto Security Design */

:root {
    /* Brand Colors - Inspired by black hardware wallet */
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    
    /* JUD Specific Colors */
    --jud-black: #1a1a1a;
    --jud-dark-gray: #2d3436;
    --jud-silver: #ddd;
    --jud-blue: #0066cc;
    --jud-green: #00b894;
    --jud-orange: #fd79a8;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--jud-black);
}

.display-4, .display-5, .display-6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(26, 26, 26, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--jud-blue) !important;
    transform: translateY(-1px);
    transition: var(--transition);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: #fff !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--jud-blue) !important;
    transform: translateY(-1px);
}

/* Hero Section - Hardware Wallet Showcase */
.hero-section {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 52, 54, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

/* Hero Text Styling for Better Visibility */
.hero-section h1, 
.hero-section .display-4 {
    text-shadow: 3px 3px 8px rgba(0,0,0,0.9);
    color: #ffffff !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 3;
}

.hero-section p,
.hero-section .lead {
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    color: rgba(255,255,255,0.95) !important;
    font-weight: 500;
    position: relative;
    z-index: 3;
}

.hero-section .badge {
    background-color: rgba(0, 123, 255, 0.9) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-section .btn {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
    z-index: 3;
}

/* Product Hero Image */
.product-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    perspective: 1000px;
}

.main-product-image {
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.main-product-image:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* Mobile Integration Image */
.mobile-integration-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.mobile-integration-image:hover {
    transform: scale(1.02);
}

/* Feature Cards */
.features-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    color: var(--jud-blue);
    margin-bottom: 1rem;
}

.feature-icon i {
    background: linear-gradient(135deg, var(--jud-blue), var(--jud-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Product Gallery */
.product-gallery {
    padding: var(--section-padding);
}

.main-product-gallery {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.product-main-image {
    max-width: 350px;
    height: auto;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.product-main-image:hover {
    transform: scale(1.05);
}

/* Removed old CSS-generated wallet styles - now using real product images */

/* Product Thumbnails */
.product-thumbnails {
    margin-top: 2rem;
}

.thumbnail-item {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--jud-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Mobile App Preview */
.mobile-app-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.phone-mockup {
    width: 280px;
    height: 500px;
    background: linear-gradient(145deg, #333, #1a1a1a);
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 60px;
    height: 4px;
    background: #555;
    border-radius: 2px;
    transform: translateX(-50%);
}

.screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}

.app-header {
    background: var(--jud-blue);
    color: #fff;
    padding: 1rem;
    text-align: center;
}

.app-content {
    padding: 1.5rem;
    text-align: center;
}

.device-preview {
    width: 80px;
    height: 120px;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 12px;
    margin: 1rem auto;
    position: relative;
}

.device-preview::after {
    content: '👆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
}

.transaction-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: left;
}

/* Compatibility Section */
.compatibility-section {
    padding: var(--section-padding);
}

.crypto-support {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.crypto-support i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Specifications */
.specifications-section {
    padding: var(--section-padding);
}

.spec-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
    transition: var(--transition);
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.spec-card h5 {
    color: var(--jud-black);
    border-bottom: 2px solid var(--jud-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.spec-card ul {
    list-style: none;
    padding: 0;
}

.spec-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.spec-card li:hover {
    background: #f8f9fa;
    padding-left: 0.5rem;
}

.spec-card li:last-child {
    border-bottom: none;
}

/* DEX Exchange Features */
.dex-features-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.dex-feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.dex-feature-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.dex-interface-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.trading-interface {
    width: 300px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border: 1px solid #ddd;
}

.interface-header {
    background: var(--jud-blue);
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.trading-pair {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pair-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.from-token, .to-token {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    color: var(--jud-blue);
    border: 2px solid var(--jud-blue);
}

.amount-input, .amount-output {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.amount-input label, .amount-output label {
    font-weight: 600;
    color: #666;
    display: block;
    margin-bottom: 0.5rem;
}

.token-amount, .receive-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--jud-black);
}

.trade-button {
    padding: 1.5rem;
    text-align: center;
}

.btn-trade {
    background: var(--jud-green);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.btn-trade:hover {
    background: #00a085;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

/* Checkout Styles */
.checkout-container {
    padding: 2rem 0;
    background: #f8f9fa;
}

.order-summary {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 100px;
    border: 1px solid #ddd;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.product-info {
    display: flex;
    align-items: center;
}

.product-image-mini {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    margin-right: 1rem;
    overflow: hidden;
    border: 1px solid #ddd;
}

.checkout-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details h6 {
    margin: 0;
    font-weight: 600;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--jud-blue);
}

.order-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--jud-black);
    border-top: 2px solid var(--jud-blue);
    padding-top: 1rem;
    margin-top: 1rem;
}

.shipping-info {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.shipping-badge {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #666;
}

.shipping-badge i {
    margin-right: 0.5rem;
}

.checkout-form {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #ddd;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

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

.section-title {
    color: var(--jud-black);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--jud-blue);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    position: relative;
}

.payment-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.payment-label:hover {
    border-color: var(--jud-blue);
    background: #e3f2fd;
}

.payment-option input[type="radio"]:checked + .payment-label {
    border-color: var(--jud-blue);
    background: #e3f2fd;
    color: var(--jud-blue);
}

.payment-label i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.payment-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

.checkout-submit {
    margin-top: 2rem;
    text-align: center;
}

.terms-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

/* Contact Page */
.contact-header {
    background: linear-gradient(135deg, var(--jud-blue) 0%, #0056b3 100%);
}

.contact-form-section {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #ddd;
}

.contact-details {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid #ddd;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--jud-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
}

.contact-text h6 {
    margin-bottom: 0.5rem;
    color: var(--jud-black);
}

.support-categories ul {
    list-style: none;
    padding: 0;
}

.support-categories li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.support-categories li:last-child {
    border-bottom: none;
}

.support-categories i {
    margin-right: 0.5rem;
    width: 20px;
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding);
}

.accordion-button {
    font-weight: 600;
    color: var(--jud-black);
}

.accordion-button:not(.collapsed) {
    background-color: var(--jud-blue);
    color: #fff;
}

.accordion-button:focus {
    border-color: var(--jud-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Legal Pages */
.legal-header {
    background: linear-gradient(135deg, var(--jud-black) 0%, var(--jud-dark-gray) 100%);
}

.legal-content {
    padding: var(--section-padding);
}

.legal-nav {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid #ddd;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
}

.legal-nav li {
    margin-bottom: 0.5rem;
}

.legal-nav a {
    color: #666;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.legal-nav a:hover {
    color: var(--jud-blue);
    text-decoration: underline;
}

.legal-text {
    line-height: 1.8;
}

.legal-text h3 {
    color: var(--jud-black);
    border-bottom: 2px solid var(--jud-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.legal-text h5 {
    color: var(--jud-dark-gray);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.legal-text ul, .legal-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

/* Returns Page Specific */
.key-points {
    border-left: 4px solid var(--jud-green);
}

.return-steps {
    margin-top: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--jud-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h6 {
    margin-bottom: 0.5rem;
    color: var(--jud-black);
}

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

.condition-item {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
    text-align: center;
    transition: var(--transition);
}

.condition-item.acceptable {
    border-color: var(--jud-green);
    background: rgba(40, 167, 69, 0.05);
}

.condition-item.non-returnable {
    border-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.05);
}

.condition-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--jud-blue);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    background: var(--jud-blue);
    color: #fff;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    font-size: 0.8rem;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
    margin-left: 1rem;
}

.comparison-table .row {
    margin: 0;
}

.comparison-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
    height: 100%;
}

.comparison-item.returns {
    border-color: var(--jud-blue);
    background: rgba(0, 123, 255, 0.05);
}

.comparison-item.warranty {
    border-color: var(--jud-green);
    background: rgba(40, 167, 69, 0.05);
}

/* Cookie Policy Specific */
.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.cookie-category:nth-child(1) {
    border-left-color: var(--jud-green);
    background: rgba(40, 167, 69, 0.05);
}

.cookie-category:nth-child(2) {
    border-left-color: var(--jud-blue);
    background: rgba(0, 123, 255, 0.05);
}

.cookie-category:nth-child(3) {
    border-left-color: var(--warning-color);
    background: rgba(255, 193, 7, 0.05);
}

.cookie-preferences-demo {
    border: 2px solid var(--jud-blue);
}

.table-dark th {
    background-color: var(--jud-black);
    border-color: #444;
}

.table-bordered td code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: var(--jud-blue);
}

/* Security Notice */
.security-notice {
    background: linear-gradient(135deg, var(--jud-black) 0%, var(--jud-dark-gray) 100%);
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.security-features {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.security-badge i {
    margin-right: 0.5rem;
}

/* Cookie Notice */
.cookie-notice {
    background: var(--jud-black);
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* EU Compliance */
.eu-compliance {
    background: var(--jud-blue);
    color: #fff;
}

.eu-compliance-notice {
    border: 2px solid var(--jud-blue);
}

/* CTA Sections */
.cta-section, .order-cta {
    background: linear-gradient(135deg, var(--jud-blue) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before, .order-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

/* Button Enhancements */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--jud-blue), #0056b3);
    border-color: var(--jud-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    border-color: var(--warning-color);
    color: var(--jud-black);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    color: var(--jud-black);
}

.btn-success {
    background: linear-gradient(135deg, var(--jud-green), #00a085);
    border-color: var(--jud-green);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--jud-blue);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--jud-black) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

footer .container {
    position: relative;
    z-index: 1;
}

footer a:hover {
    color: var(--jud-blue) !important;
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .wallet-device {
        width: 160px;
        height: 260px;
        padding: 15px;
    }
    
    .oled-display {
        height: 100px;
        margin-bottom: 15px;
    }
    
    .control-ring {
        width: 80px;
        height: 80px;
    }
    
    .fingerprint-sensor {
        width: 30px;
        height: 30px;
    }
    
    .nav-btn {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    
    .wallet-front {
        width: 200px;
        height: 320px;
        padding: 20px;
    }
    
    .oled-screen-large {
        height: 120px;
        margin-bottom: 20px;
    }
    
    .control-interface {
        width: 100px;
        height: 100px;
    }
    
    .fingerprint-area {
        width: 40px;
        height: 40px;
    }
    
    .nav-control {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }
    
    .phone-mockup {
        width: 220px;
        height: 400px;
        padding: 15px;
    }
    
    .trading-interface {
        width: 280px;
    }
    
    .condition-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-marker {
        left: -1.5rem;
        min-width: 50px;
        font-size: 0.7rem;
    }
    
    .timeline-content {
        margin-left: 0.5rem;
    }
    
    .security-features {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .security-badge {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .legal-nav {
        position: relative !important;
        top: auto !important;
        margin-bottom: 2rem;
    }
    
    .contact-details {
        position: relative !important;
        top: auto !important;
        margin-top: 2rem;
    }
    
    .order-summary {
        position: relative !important;
        top: auto !important;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .display-4, .display-5, .display-6 {
        font-size: 2rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-wallet-display {
        padding: 1.5rem;
    }
    
    .checkout-form, .contact-form-section {
        padding: 1.5rem;
    }
    
    .order-summary, .contact-details {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .cookie-notice, .security-notice, footer {
        display: none !important;
    }
    
    .legal-content {
        padding: 1rem 0;
    }
    
    .legal-nav {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
    }
    
    .alert, .bg-light, .bg-primary {
        background: #f8f9fa !important;
        border: 1px solid #ddd !important;
        color: #333 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .wallet-device, .wallet-front {
        transform: none !important;
    }
    
    .display-icon, .screen-icon {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .wallet-device, .wallet-front {
        border: 3px solid #000;
    }
    
    .oled-display, .oled-screen-large {
        border: 2px solid #000;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .feature-card, .spec-card {
        border: 2px solid #333;
    }
}

/* Focus Styles for Accessibility */
button:focus, .btn:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--jud-blue);
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #2d3436;
        --dark-color: #f8f9fa;
    }
    
    .bg-light {
        background-color: #2d3436 !important;
        color: #f8f9fa !important;
    }
    
    .feature-card, .spec-card, .checkout-form, .contact-form-section, .order-summary, .contact-details {
        background-color: #2d3436;
        color: #f8f9fa;
        border-color: #555;
    }
    
    .legal-nav {
        background-color: #2d3436;
        color: #f8f9fa;
    }
    
    .form-control {
        background-color: #1a1a1a;
        color: #f8f9fa;
        border-color: #555;
    }
    
    .form-control:focus {
        background-color: #1a1a1a;
        color: #f8f9fa;
        border-color: var(--jud-blue);
    }
}

/* Crypto Security Visual Elements */
.crypto-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 184, 148, 0.1) 0%, transparent 50%);
}

.security-glow {
    box-shadow: 
        0 0 20px rgba(0, 123, 255, 0.2),
        0 0 40px rgba(0, 123, 255, 0.1),
        0 0 60px rgba(0, 123, 255, 0.05);
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Colors */
::selection {
    background-color: var(--jud-blue);
    color: #fff;
}

::-moz-selection {
    background-color: var(--jud-blue);
    color: #fff;
}

/* Enhanced Text Contrast for All Dark Backgrounds */
.bg-dark, .hero-section, .cta-section, .order-cta {
    h1, h2, h3, h4, h5, h6 {
        color: #ffffff !important;
        text-shadow: 3px 3px 8px rgba(0,0,0,0.9);
        font-weight: 700;
    }
    
    p, .lead, .text-muted {
        color: rgba(255,255,255,0.95) !important;
        text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
        font-weight: 500;
    }
    
    .badge {
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
        border: 1px solid rgba(255,255,255,0.2);
    }
    
    .btn {
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }
}

/* Enhanced Readability for Light Backgrounds with Dark Text */
.bg-light, .bg-gray, .feature-card, .spec-card {
    h1, h2, h3, h4, h5, h6 {
        color: var(--jud-black) !important;
        font-weight: 700;
    }
    
    p, .lead, .text-muted {
        color: #333333 !important;
        font-weight: 400;
    }
}
