/* ========================================
   SECTION CONTAINER
   ======================================== */

   .trading-licenses-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #f8faf9 0%, #ffffff 50%, #f8faf9 100%);
    position: relative;
    overflow: hidden;
}

.trading-licenses-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(34, 139, 34, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.trading-licenses-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   HEADER STYLES
   ======================================== */

.trading-licenses-header {
    text-align: center;
    margin-bottom: 60px;
    animation: tradingFadeInUp 0.8s ease-out;
}

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

.trading-licenses-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.trading-licenses-badge:hover {
    transform: scale(1.05);
}

.trading-licenses-badge i {
    font-size: 16px;
}

.trading-licenses-main-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.trading-licenses-subtitle {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

/* ========================================
   LICENSES GRID
   ======================================== */

.trading-licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* ========================================
   LICENSE CARD STYLES
   ======================================== */

.trading-license-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #C8E6C9;
    opacity: 0;
    transform: translateY(30px);
}

.trading-license-card.trading-card-visible {
    animation: tradingCardFadeIn 0.6s ease-out forwards;
}

@keyframes tradingCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trading-license-card:nth-child(1) { animation-delay: 0.1s; }
.trading-license-card:nth-child(2) { animation-delay: 0.2s; }
.trading-license-card:nth-child(3) { animation-delay: 0.3s; }

.trading-license-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(34, 139, 34, 0.2);
    border-color: #228B22;
}

/* ========================================
   CARD HEADER
   ======================================== */

.trading-card-header {
    padding: 25px 25px 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.trading-license-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.trading-license-card:hover .trading-license-icon {
    transform: scale(1.1) rotate(5deg);
}

.trading-license-icon.kcca-icon {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
}

.trading-license-icon.ppa-icon {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
}

.trading-license-icon.nsd-icon {
    background: linear-gradient(135deg, #2E8B57 0%, #3CB371 100%);
}

.trading-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E8F5E9;
    color: #228B22;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #C8E6C9;
}

.trading-license-badge i {
    font-size: 13px;
    animation: tradingPulse 2s ease-in-out infinite;
}

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

/* ========================================
   CARD BODY
   ======================================== */

.trading-card-body {
    padding: 0 25px 20px;
}

.trading-license-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.trading-license-card:hover .trading-license-title {
    color: #228B22;
}

.trading-license-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
    min-height: 66px;
}

.trading-license-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trading-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #555;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #228B22;
    transition: all 0.3s ease;
}

.trading-detail-item:hover {
    background: #E8F5E9;
    transform: translateX(5px);
    border-left-width: 4px;
}

.trading-detail-item i {
    color: #228B22;
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.trading-detail-item span {
    flex: 1;
}

/* ========================================
   CARD FOOTER
   ======================================== */

.trading-card-footer {
    padding: 18px 25px 25px;
    display: flex;
    gap: 10px;
}

.trading-view-btn {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trading-view-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.trading-view-btn:hover::before {
    width: 300px;
    height: 300px;
}

.trading-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.3);
}

.trading-view-btn:active {
    transform: translateY(0);
}

.trading-download-btn {
    width: 48px;
    height: 48px;
    background: white;
    color: #FF6B35;
    border: 2px solid #FF6B35;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.trading-download-btn:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.trading-download-btn:active {
    transform: translateY(0);
}

/* ========================================
   COMPLIANCE STATEMENT
   ======================================== */

.trading-compliance-statement {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    padding: 40px 50px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 8px 30px rgba(34, 139, 34, 0.2);
    border: 3px solid #32CD32;
    position: relative;
    overflow: hidden;
}

.trading-compliance-statement::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: tradingFloat 6s ease-in-out infinite;
}

@keyframes tradingFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

.trading-compliance-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.trading-compliance-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.trading-compliance-title {
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.trading-compliance-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   MODAL STYLES
   ======================================== */

.trading-license-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trading-license-modal.trading-modal-active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.trading-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.trading-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 950px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: tradingModalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 3px solid #228B22;
}

@keyframes tradingModalSlideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.trading-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 35px;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.trading-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #228B22;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.trading-modal-title i {
    font-size: 26px;
}

.trading-modal-close {
    width: 42px;
    height: 42px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #666;
    flex-shrink: 0;
}

.trading-modal-close:hover {
    background: #228B22;
    color: white;
    transform: rotate(90deg);
}

.trading-modal-body {
    padding: 35px;
    overflow-y: auto;
    flex: 1;
}

.trading-modal-image-container {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #e0e0e0;
}

.trading-modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.trading-modal-info {
    margin-bottom: 30px;
}

.trading-modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.trading-modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #228B22;
    transition: all 0.3s ease;
}

.trading-modal-info-item:hover {
    background: #E8F5E9;
    transform: translateX(3px);
}

.trading-modal-info-label {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trading-modal-info-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.trading-status-active {
    color: #228B22;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trading-status-active i {
    font-size: 16px;
}

.trading-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.trading-modal-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.trading-modal-download {
    background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
    color: white;
}

.trading-modal-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.3);
}

.trading-modal-print {
    background: white;
    color: #FF6B35;
    border: 2px solid #FF6B35;
}

.trading-modal-print:hover {
    background: #FF6B35;
    color: white;
    transform: translateY(-3px);
}

.trading-modal-btn:active {
    transform: translateY(0);
}

/* ========================================
   SCROLLBAR CUSTOMIZATION
   ======================================== */

.trading-modal-body::-webkit-scrollbar {
    width: 8px;
}

.trading-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.trading-modal-body::-webkit-scrollbar-thumb {
    background: #228B22;
    border-radius: 10px;
}

.trading-modal-body::-webkit-scrollbar-thumb:hover {
    background: #1a6b1a;
}

.trading-modal-body {
    scrollbar-width: thin;
    scrollbar-color: #228B22 #f1f1f1;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .trading-licenses-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }

    .trading-licenses-main-title {
        font-size: 36px;
    }

    .trading-licenses-subtitle {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .trading-licenses-section {
        padding: 60px 15px;
    }

    .trading-licenses-header {
        margin-bottom: 40px;
    }

    .trading-licenses-badge {
        font-size: 12px;
        padding: 8px 20px;
    }

    .trading-licenses-main-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .trading-licenses-subtitle {
        font-size: 16px;
    }

    .trading-licenses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .trading-card-header {
        padding: 20px 20px 12px;
    }

    .trading-license-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .trading-card-body {
        padding: 0 20px 16px;
    }

    .trading-license-title {
        font-size: 18px;
    }

    .trading-license-description {
        font-size: 13px;
        min-height: auto;
    }

    .trading-detail-item {
        font-size: 12px;
        padding: 7px 10px;
    }

    .trading-detail-item i {
        font-size: 14px;
    }

    .trading-card-footer {
        padding: 16px 20px 20px;
    }

    .trading-view-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .trading-download-btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .trading-compliance-statement {
        padding: 30px 25px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 40px;
    }

    .trading-compliance-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }

    .trading-compliance-title {
        font-size: 22px;
    }

    .trading-compliance-text {
        font-size: 14px;
    }

    /* Modal Responsive */
    .trading-modal-content {
        width: 95%;
        max-height: 95vh;
        border-width: 2px;
    }

    .trading-modal-header {
        padding: 20px 25px;
    }

    .trading-modal-title {
        font-size: 20px;
    }

    .trading-modal-title i {
        font-size: 22px;
    }

    .trading-modal-close {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .trading-modal-body {
        padding: 25px;
    }

    .trading-modal-image-container {
        padding: 15px;
        margin-bottom: 25px;
    }

    .trading-modal-info {
        margin-bottom: 25px;
    }

    .trading-modal-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .trading-modal-info-item {
        padding: 14px;
    }

    .trading-modal-actions {
        flex-direction: column;
    }

    .trading-modal-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 14px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .trading-licenses-section {
        padding: 40px 10px;
    }

    .trading-licenses-main-title {
        font-size: 24px;
    }

    .trading-licenses-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }

    .trading-license-title {
        font-size: 16px;
    }

    .trading-license-description {
        font-size: 12px;
    }

    .trading-compliance-statement {
        padding: 20px 18px;
    }

    .trading-compliance-title {
        font-size: 18px;
    }

    .trading-compliance-text {
        font-size: 13px;
    }

    .trading-modal-header {
        padding: 16px 20px;
    }

    .trading-modal-body {
        padding: 20px;
    }

    .trading-modal-title {
        font-size: 16px;
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .trading-modal-info-item {
        padding: 12px;
    }

    .trading-modal-info-label {
        font-size: 11px;
    }

    .trading-modal-info-value {
        font-size: 14px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.trading-view-btn:focus,
.trading-download-btn:focus,
.trading-modal-btn:focus,
.trading-modal-close:focus {
    outline: 3px solid #228B22;
    outline-offset: 3px;
}

.trading-view-btn:focus:not(:focus-visible),
.trading-download-btn:focus:not(:focus-visible),
.trading-modal-btn:focus:not(:focus-visible),
.trading-modal-close:focus:not(:focus-visible) {
    outline: none;
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
    .trading-licenses-section {
        background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    }

    .trading-licenses-main-title {
        color: #ffffff;
    }

    .trading-licenses-subtitle {
        color: #cccccc;
    }

    .trading-license-card {
        background: #2d2d2d;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .trading-license-title {
        color: #ffffff;
    }

    .trading-license-description {
        color: #cccccc;
    }

    .trading-detail-item {
        background: #3d3d3d;
        color: #cccccc;
    }

    .trading-modal-content {
        background: #2d2d2d;
    }

    .trading-modal-header {
        background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
        border-bottom-color: #3d3d3d;
    }

    .trading-modal-title {
        color: #32CD32;
    }

    .trading-modal-close {
        background: #3d3d3d;
        color: #cccccc;
    }

    .trading-modal-image-container {
        background: #1a1a1a;
        border-color: #3d3d3d;
    }

    .trading-modal-info-item {
        background: #1a1a1a;
    }

    .trading-modal-info-label {
        color: #999;
    }

    .trading-modal-info-value {
        color: #ffffff;
    }

    .trading-modal-print {
        background: #2d2d2d;
        border-color: #FF6B35;
        color: #FF6B35;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .trading-licenses-badge,
    .trading-card-footer,
    .trading-modal-actions,
    .trading-modal-close,
    .trading-compliance-statement::before {
        display: none !important;
    }

    .trading-licenses-section {
        padding: 20px;
        background: white;
    }

    .trading-licenses-grid {
        display: block;
    }

    .trading-license-card {
        page-break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 2px solid #228B22;
    }

    .trading-modal-content {
        box-shadow: none;
        border: 2px solid #228B22;
    }
}

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .trading-license-card,
    .trading-modal-content {
        animation: none !important;
    }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */

@media (prefers-contrast: high) {
    .trading-license-card {
        border-width: 4px;
    }

    .trading-modal-content {
        border-width: 4px;
    }

    .trading-view-btn,
    .trading-download-btn,
    .trading-modal-btn {
        border-width: 3px;
    }

    .trading-detail-item {
        border-left-width: 5px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.trading-hidden {
    display: none !important;
}

.trading-visible {
    display: block !important;
}

.trading-text-center {
    text-align: center;
}

/* ========================================
   LOADING STATE
   ======================================== */

.trading-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.trading-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #228B22;
    border-radius: 50%;
    animation: tradingSpin 1s linear infinite;
}

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

/* ========================================
   SMOOTH TRANSITIONS
   ======================================== */

.trading-licenses-section *,
.trading-license-modal * {
    box-sizing: border-box;
}

.trading-modal-body {
    scroll-behavior: smooth;
}

/* ========================================
   PREVENT TEXT SELECTION ON BUTTONS
   ======================================== */

.trading-view-btn,
.trading-download-btn,
.trading-modal-btn,
.trading-modal-close {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

