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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Development Environment Banner */
.dev-banner {
    background-color: #ff4444;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Adjust body padding to account for fixed banner */
body.has-dev-banner {
    padding-top: 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 48px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature {
    text-align: center;
    padding: 24px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature p {
    opacity: 0.8;
    font-size: 16px;
}

/* Main Content */
.main-content {
    padding: 0;
}

.upload-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.upload-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2d3748;
}

.section-subtitle {
    font-size: 18px;
    color: #718096;
    margin-bottom: 48px;
}

/* Upload Options */
.upload-options {
    margin-bottom: 32px;
}

.upload-option {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.upload-option.active {
    border-color: #667eea;
    background: #f0f4ff;
}

.upload-option:not(.active) {
    display: none;
}

.option-header {
    margin-bottom: 24px;
}

.option-header h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

.option-header p {
    color: #718096;
    font-size: 16px;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #667eea;
    background-color: #f0f4ff;
}

.file-upload-area.drag-over {
    border-color: #667eea;
    background-color: #e6fffa;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.file-upload-area p {
    margin-bottom: 24px;
    color: #718096;
    font-size: 16px;
}

.file-info {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
}

.file-size {
    font-size: 14px;
    color: #718096;
}

/* Text Input */
#text-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 200px;
    transition: border-color 0.3s ease;
}

#text-input:focus {
    outline: none;
    border-color: #667eea;
}

.text-stats {
    text-align: right;
    margin-top: 8px;
    font-size: 14px;
    color: #718096;
}

/* Option Toggle */
.option-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    background: #f7fafc;
    border-radius: 8px;
    padding: 4px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #718096;
}

.toggle-btn.active {
    background: white;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hash Preview */
.hash-preview {
    background: #f7fafc;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.hash-preview h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3748;
}

.hash-display {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hash-display code {
    flex: 1;
    background: white;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    border: 1px solid #e2e8f0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-continue {
    margin-top: 24px;
    display: none;
    position: relative;
    border: 2px solid transparent;
}

.btn-continue:not(:disabled) {
    animation: pulse-green-border 2s ease-in-out infinite;
}

@keyframes pulse-green-border {
    0% {
        border-color: #48bb78;
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }
    50% {
        border-color: #38a169;
        box-shadow: 0 0 0 8px rgba(72, 187, 120, 0.2);
    }
    100% {
        border-color: #48bb78;
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0);
    }
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-copy {
    background: #48bb78;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #38a169;
}

.btn-remove {
    background: #f56565;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.btn-remove:hover {
    background: #e53e3e;
}

.price {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
}

/* How It Works Section */
.how-it-works {
    background: #f7fafc;
    padding: 80px 0;
    text-align: center;
}

.how-it-works h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #2d3748;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3748;
}

.step p {
    color: #718096;
    line-height: 1.6;
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    text-align: center;
}

.trust-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 48px;
    color: #2d3748;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.trust-item {
    padding: 32px 24px;
    background: #f7fafc;
    border-radius: 12px;
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.trust-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3748;
}

.trust-item p {
    color: #718096;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p {
    color: #a0aec0;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 24px;
    text-align: center;
    color: #a0aec0;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Error Modal */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.error-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.error-modal h3 {
    color: #e53e3e;
    margin-bottom: 15px;
    font-size: 24px;
}

.error-details p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.error-info {
    background: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

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

.info-row .label {
    font-weight: 600;
    color: #2d3748;
}

.info-row span:last-child {
    color: #4a5568;
    font-family: monospace;
    word-break: break-all;
    max-width: 60%;
    text-align: right;
}

.error-actions {
    display: flex;
    justify-content: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

.loading-content p {
    font-size: 18px;
    font-weight: 500;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .upload-section h2 {
        font-size: 28px;
    }
    
    .upload-option {
        padding: 24px 16px;
    }
    
    .file-upload-area {
        padding: 32px 16px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .how-it-works,
    .trust-section {
        padding: 40px 0;
    }
    
    .how-it-works h2,
    .trust-section h2 {
        font-size: 28px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .hash-display {
        flex-direction: column;
        gap: 12px;
    }
    
    .hash-display code {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    .upload-option {
        padding: 20px 12px;
    }
    
    .btn-primary {
        font-size: 16px;
        padding: 14px 24px;
    }
    
    .option-toggle {
        max-width: 250px;
    }
    
    .toggle-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Verified Stamp Animation */
.verified-stamp {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    animation: stampAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.stamp-container {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid #48bb78;
    border-radius: 15px;
    padding: 15px 25px;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
    backdrop-filter: blur(10px);
    animation: stampPulse 2s infinite;
}

.stamp-seal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stamp-icon {
    width: 40px;
    height: 40px;
    background: #48bb78;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    animation: checkmarkRotate 0.6s ease-in-out 0.2s forwards;
    transform: rotate(-180deg) scale(0);
}

.stamp-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stamp-text span {
    color: #48bb78;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.stamp-text small {
    color: #68d391;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes stampAppear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px) scale(0.5) rotate(-10deg);
    }
    70% {
        transform: translateX(-50%) translateY(0) scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes checkmarkRotate {
    0% {
        transform: rotate(-180deg) scale(0);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}

@keyframes stampPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 35px rgba(72, 187, 120, 0.5);
        transform: scale(1.02);
    }
}

/* Fade out animation */
.verified-stamp.fade-out {
    animation: stampFadeOut 0.5s ease-in-out forwards;
}

@keyframes stampFadeOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.8);
    }
}

/* Mobile responsiveness for stamp */
@media (max-width: 768px) {
    .verified-stamp {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        max-width: calc(100vw - 20px);
    }
    
    .stamp-container {
        padding: 12px 20px;
    }
    
    .stamp-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .stamp-text span {
        font-size: 16px;
        letter-spacing: 1.5px;
    }
    
    .stamp-text small {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .stamp-container {
        padding: 10px 15px;
    }
    
    .stamp-seal {
        gap: 10px;
    }
    
    .stamp-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .stamp-text span {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .stamp-text small {
        font-size: 10px;
    }
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 80px;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-flag {
    font-size: 16px;
}

.lang-code {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.lang-current.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDown 0.2s ease-out;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-name {
    font-weight: 500;
}

/* Responsive adjustments for language selector */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .lang-dropdown {
        left: 0;
        right: auto;
        min-width: 180px;
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        margin-bottom: 10px;
    }
}

/* Ensure navbar can accommodate language selector */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar .logo {
    flex: 0 0 auto;
}


/* Success Page Styles */
.success-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-content {
    background: white;
    border-radius: 16px;
    padding: 48px 32px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.success-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.success-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
}

.success-subtitle {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 32px;
}

.transaction-details {
    background: #f7fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.transaction-details h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 500;
    color: #4a5568;
}

.detail-row .value {
    font-family: 'Courier New', monospace;
    color: #1a202c;
    font-size: 14px;
    word-break: break-all;
}

.verification-info {
    text-align: left;
    margin-bottom: 32px;
}

.verification-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
}

.verification-info p {
    color: #4a5568;
    margin-bottom: 12px;
}

.verification-info ol {
    color: #4a5568;
    margin-left: 20px;
}

.verification-info li {
    margin-bottom: 8px;
}

.actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.actions .btn-primary,
.actions .btn-secondary {
    min-width: 200px;
}

/* Responsive adjustments for success page */
@media (max-width: 768px) {
    .success-content {
        padding: 32px 24px;
    }
    
    .success-title {
        font-size: 24px;
    }
    
    .success-subtitle {
        font-size: 16px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-row .value {
        font-size: 12px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions .btn-primary,
    .actions .btn-secondary {
        min-width: 100%;
    }
}

/* Blockchain Processing Animations */
.detail-row {
    position: relative;
    transition: all 0.3s ease;
    padding-right: 40px; /* Space for checkmark */
}

.detail-row.processing .value {
    position: relative;
}

.detail-row.processing .value::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0066ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.detail-row.completed .value {
    color: #059669;
    font-weight: 500;
}

.detail-row.completed::after {
    content: '✅';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    animation: checkmark-appear 0.5s ease-out;
}


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

@keyframes checkmark-appear {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-row.animate-in {
    animation: fade-in-up 0.5s ease-out;
}

/* Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* User Icon Styles */
.user-icon-wrapper {
    position: relative;
}

.user-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 280px;
    z-index: 1000;
    overflow: hidden;
    animation: fadeInDown 0.2s ease-out;
}

.dropdown-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.dropdown-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.dropdown-header p {
    font-size: 14px;
    color: #4a5568;
}

.dropdown-login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    text-align: left;
}

.dropdown-login-btn:hover {
    background: #f8f9fa;
}

.dropdown-login-btn.google-btn {
    color: #4285f4;
}

.dropdown-login-btn.facebook-btn {
    color: #1877f2;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.dropdown-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-action-btn:hover {
    background: #f8f9fa;
    color: #2d3748;
}

.dropdown-action-btn.logout-btn {
    color: #e53e3e;
}

.dropdown-action-btn.logout-btn:hover {
    background: #fed7d7;
    color: #c53030;
}

/* User Profile Section */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.user-profile img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

.user-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 2px;
}

.user-info p {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 6px;
}

.subscription-status {
    display: inline-block;
    padding: 4px 8px;
    background: #e6fffa;
    color: #234e52;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
}

.subscription-status.premium {
    background: #fef5e7;
    color: #744210;
}

.subscription-status.pro {
    background: #e6f3ff;
    color: #1e40af;
}

/* Dashboard Modal Styles */
.dashboard-modal .dashboard-content {
    background: white;
    border-radius: 12px;
    width: 90vw;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
}

.close-dashboard {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-dashboard:hover {
    background: #f5f5f5;
}

.dashboard-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.no-transactions {
    text-align: center;
    color: #666;
    font-size: 16px;
    padding: 40px 20px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f8f9fa;
}

.transaction-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.transaction-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Keep navbar horizontal on iPhone sizes but reduce spacing */
@media (min-width: 361px) and (max-width: 768px) {
    .navbar {
        padding: 15px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .nav-controls {
        gap: 12px;
        flex-shrink: 0;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .lang-current {
        min-width: 50px;
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .user-icon-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {
    
    .auth-section {
        width: 100%;
        justify-content: flex-start;
    }
    
    .login-buttons {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .btn-login {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .dashboard-modal .dashboard-content {
        width: 95vw;
        margin: 10px;
    }
}
