@font-face {
    font-family: 'IranianSans';
    src: url('/main/fonts/IranianSans.ttf') format('truetype');
}

:root {
    --primary-green: #00726F;
    --light-green: #33A19E;
    --dark-green: #005452;
    --accent-blue: #0288D1;
    --primary-red: #FF5252;
    --text-white: #FFFFFF;
    --text-light: #E0E0E0;
    --bg-dark: #121212;
    --bg-darker: #1C1C1C;
    --bg-row-alt: #252525;
    --border-light: rgba(255, 255, 255, 0.15);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gh-main-body {
    font-family: 'IranianSans', sans-serif;
    color: var(--text-white);
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
}

.gh-main-content {
    margin-top: 80px;
}

.gh-password-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: var(--bg-darker);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
}

.gh-password-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.5s ease-out forwards 0.1s;
}

.gh-password-countdown {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-white);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease-out forwards 0.2s;
}

.gh-password-error {
    font-size: 14px;
    color: var(--primary-red);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease-out forwards 0.3s;
}

.gh-password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gh-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    animation: fadeIn 0.5s ease-out forwards 0.4s;
}

.gh-form-group label {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
}

.gh-form-group input {
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #2C2C2C;
    color: var(--text-white);
    font-size: 14px;
    transition: border-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.gh-form-group input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 8px rgba(0, 114, 111, 0.3);
    outline: none;
}

.gh-password-submit {
    font-family: 'IranianSans', sans-serif;
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--primary-green), var(--light-green));
    border: none;
    border-radius: 8px;
    color: var(--text-white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards 0.5s;
}

.gh-password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 114, 111, 0.6);
}

.gh-main-box {
    position: relative;
    min-height: 800px;
    padding: 40px 20px 100px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards 0.6s;
}

@media (min-width: 768px) {
    .gh-main-box {
        background-image: var(--desktop-bg);
    }
}

@media (max-width: 767px) {
    .gh-main-box {
        background-image: var(--mobile-bg);
        min-height: 600px;
        padding: 30px 15px 80px;
    }
}

.gh-hero-section {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.gh-hero-title {
    font-size: 52px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeIn 0.5s ease-out forwards 0.7s;
}

.gh-hero-logo-img {
    max-height: 40px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    border-radius: 5px;
}

.gh-hero-subtitle {
    font-size: 22px;
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards 0.8s;
}

.gh-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.gh-btn-primary, .gh-btn-secondary {
    font-family: 'IranianSans', sans-serif;
    color: var(--text-white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
}

.gh-btn-primary {
    background: linear-gradient(45deg, var(--primary-green), var(--light-green));
    border: 1px solid var(--dark-green);
    animation-delay: 0.9s;
}

.gh-btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-white);
    animation-delay: 1s;
}

.gh-btn-primary:hover, .gh-btn-secondary:hover {
    background: linear-gradient(45deg, var(--dark-green), var(--primary-green));
    border-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 114, 111, 0.6);
}

.gh-features-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.gh-feature-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    min-height: 250px;
    position: relative;
}

.gh-feature-card {
    text-align: center;
    padding: 20px;
    background: transparent;
    border-radius: 12px;
    width: 300px;
    box-shadow: none;
    transition: transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards;
}

.gh-feature-card:nth-child(1) { animation-delay: 1.1s; }
.gh-feature-card:nth-child(2) { animation-delay: 1.2s; }
.gh-feature-card:nth-child(3) { animation-delay: 1.3s; }

.gh-feature-card:hover {
    transform: translateY(-5px);
}

.gh-feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--text-white);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
    transition: transform 0.5s ease-in-out;
}

.gh-feature-card:hover .gh-feature-icon {
    transform: scale(1.1);
}

.gh-feature-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gh-feature-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gh-cta-section {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-dark);
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards 1.4s;
}

.gh-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 114, 111, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.gh-cta-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 114, 111, 0.4);
    position: relative;
    z-index: 1;
    animation: glowText 2s ease-in-out infinite;
}

.gh-btn-cta {
    font-family: 'IranianSans', sans-serif;
    color: var(--text-white);
    text-decoration: none;
    padding: 14px 28px;
    background: linear-gradient(45deg, var(--primary-green), var(--light-green));
    border: none;
    border-radius: 20px;
    font-size: 17px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards 1.5s;
}

.gh-btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0, 114, 111, 0.6), 0 0 15px rgba(0, 114, 111, 0.4);
}

.gh-crypto-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards 1.6s;
}

.gh-crypto-table-wrapper {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--bg-darker);
    background: var(--bg-darker);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px;
}

.gh-crypto-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.gh-crypto-table-wrapper::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 4px;
}

.gh-crypto-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

.gh-crypto-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

.gh-crypto-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.gh-crypto-header {
    background: linear-gradient(45deg, var(--primary-green), var(--light-green));
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    animation: glowHeader 2s ease-in-out infinite;
}

.gh-crypto-header th {
    padding: 14px 16px;
    text-align: center;
    min-width: 100px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border-bottom: 2px solid var(--border-light);
}

.gh-crypto-row:nth-child(odd) {
    background: var(--bg-darker);
}

.gh-crypto-row:nth-child(even) {
    background: var(--bg-row-alt);
}

.gh-crypto-row {
    transition: transform 0.5s ease-in-out, background 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInRow 0.5s ease-out forwards;
    animation-delay: calc(0.1s * var(--row-index));
}

.gh-crypto-row:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(0, 114, 111, 0.2), rgba(51, 161, 158, 0.2));
    box-shadow: 0 6px 16px rgba(0, 114, 111, 0.4);
}

.gh-crypto-row:last-child {
    border-bottom: none;
}

.gh-crypto-cell {
    padding: 16px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateX(20px);
    animation: slideInCell 0.5s ease-out forwards;
    animation-delay: calc(0.1s * var(--row-index) + 0.05s);
}

.gh-crypto-cell:hover {
    background: rgba(0, 114, 111, 0.15);
    transform: scale(1.02);
}

.gh-crypto-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.gh-crypto-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.5s ease-in-out;
}

.gh-crypto-icon {
    font-size: 24px;
    color: var(--text-light);
    transition: transform 0.5s ease-in-out;
}

.gh-crypto-cell:hover .gh-crypto-logo,
.gh-crypto-cell:hover .gh-crypto-icon {
    transform: scale(1.2);
}

.gh-crypto-name {
    font-family: 'IranianSans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-right: 8px;
}

.gh-crypto-separator {
    font-size: 16px;
    color: var(--text-light);
}

.gh-crypto-symbol {
    font-family: 'IranianSans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
}

.gh-crypto-price {
    font-family: 'IranianSans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    display: inline-block;
    transition: all 0.5s ease-in-out;
}

.gh-price-updated .gh-crypto-price {
    animation: pulsePrice 0.6s ease;
}

.gh-btn-buy {
    font-family: 'IranianSans', sans-serif;
    color: var(--text-white);
    text-decoration: none;
    padding: 8px 16px;
    background: linear-gradient(45deg, var(--primary-green), var(--light-green));
    border: 1px solid var(--dark-green);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.5s ease-in-out, transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.gh-btn-buy:hover {
    background: linear-gradient(45deg, var(--dark-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 114, 111, 0.6);
}

.gh-price-warning {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 82, 82, 0.95);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 10;
}

.gh-market-closed {
    text-align: center;
    padding: 40px;
    background: var(--bg-darker);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 20px auto;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease-out forwards 1.6s;
}

.gh-market-closed-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-red);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRow {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInCell {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulsePrice {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes glowHeader {
    0%, 100% {
        box-shadow: 0 0 8px rgba(0, 114, 111, 0.4);
    }
    50% {
        box-shadow: 0 0 12px rgba(0, 114, 111, 0.7);
    }
}

@media (max-width: 767px) {
    .gh-password-container {
        max-width: 90%;
        padding: 15px;
    }
    .gh-password-title {
        font-size: 20px;
    }
    .gh-password-countdown {
        font-size: 14px;
    }
    .gh-password-error {
        font-size: 13px;
    }
    .gh-form-group label {
        font-size: 14px;
    }
    .gh-form-group input {
        font-size: 13px;
        padding: 8px;
    }
    .gh-password-submit {
        font-size: 14px;
        padding: 8px 16px;
    }
    .gh-hero-section {
        padding: 60px 15px;
    }
    .gh-hero-title {
        font-size: 32px;
    }
    .gh-hero-logo-img {
        max-height: 30px;
        max-width: 90px;
    }
    .gh-hero-subtitle {
        font-size: 18px;
    }
    .gh-hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .gh-btn-primary, .gh-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        margin: 0 auto;
    }
    .gh-features-section {
        margin: 30px auto;
    }
    .gh-feature-container {
        flex-direction: column;
        align-items: center;
        min-height: 150px;
    }
    .gh-feature-card {
        position: absolute;
        width: 100%;
        max-width: 300px;
        box-shadow: none;
        display: none;
    }
    .gh-feature-card.active {
        display: block;
        position: relative;
    }
    .gh-cta-section {
        padding: 40px 15px;
        margin: 15px auto;
    }
    .gh-cta-title {
        font-size: 28px;
    }
    .gh-btn-cta {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        font-size: 16px;
    }
    .gh-crypto-section {
        margin: 20px auto;
        padding: 0 10px;
    }
    .gh-crypto-table-wrapper {
        border-radius: 8px;
        padding: 8px;
    }
    .gh-crypto-table {
        min-width: 500px;
    }
    .gh-crypto-header th {
        font-size: 14px;
        padding: 10px;
        min-width: 80px;
    }
    .gh-crypto-cell {
        padding: 12px;
    }
    .gh-crypto-logo {
        width: 26px;
        height: 26px;
    }
    .gh-crypto-icon {
        font-size: 20px;
    }
    .gh-crypto-name {
        font-size: 14px;
    }
    .gh-crypto-symbol {
        font-size: 14px;
    }
    .gh-crypto-price {
        font-size: 14px;
    }
    .gh-btn-buy {
        font-size: 13px;
        padding: 6px 12px;
    }
    .gh-price-warning {
        font-size: 12px;
        padding: 6px 10px;
        bottom: 10px;
        right: 10px;
    }
    .gh-market-closed {
        padding: 20px;
        max-width: 90%;
    }
    .gh-market-closed-title {
        font-size: 20px;
    }
}