/* ===== FINANCIAL PAGES ADDITIONAL STYLES ===== */
/* C:\xampp\htdocs\money-blog\assets\css\financial-pages.css */

/* ===== COMPOUND CALCULATOR STYLES ===== */
/* Tool Header - مطابق للكلاسات في PHP */
.tool-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.compound-header::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"><path d="M10,50 Q30,10 50,50 T90,50" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/><path d="M10,60 Q30,20 50,60 T90,60" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>');
    background-size: 200px 100px;
    animation: waveMove 10s linear infinite;
}

@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: 200px; }
}

.tool-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tool-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

.tool-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.tool-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.calculator-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.calculator-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Calculator Form */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: var(--success-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--success-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* Results Section */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.results-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.results-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.result-item.highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
}

.result-label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
}

.result-item.highlight .result-value {
    font-size: 2.5rem;
}

/* Chart Container */
.chart-container {
    height: 400px;
    margin: 2rem 0;
}

/* Breakdown Section */
.breakdown-section {
    margin-top: 2rem;
}

.breakdown-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.breakdown-table {
    overflow-x: auto;
}

.breakdown-table table {
    width: 100%;
    border-collapse: collapse;
}

.breakdown-table th,
.breakdown-table td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

[dir="ltr"] .breakdown-table th,
[dir="ltr"] .breakdown-table td {
    text-align: left;
}

.breakdown-table th {
    background: var(--bg-accent);
    font-weight: 600;
    color: var(--text-primary);
}

.breakdown-table tbody tr:hover {
    background: var(--bg-accent);
}

.growth-cell {
    color: var(--success-color);
    font-weight: 600;
}

/* Tips Card */
.tips-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.tips-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li:before {
    content: "💡";
    font-size: 1.25rem;
}

/* Education Section */
.education-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.education-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.education-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.education-card i {
    font-size: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.education-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.education-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.example-section {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.example-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.example-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ===== GLOSSARY SPECIFIC STYLES ===== */
.glossary-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.glossary-header::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"><text x="10" y="20" font-size="8" fill="rgba(255,255,255,0.05)">أ ب ت</text><text x="40" y="40" font-size="8" fill="rgba(255,255,255,0.05)">A B C</text><text x="70" y="60" font-size="8" fill="rgba(255,255,255,0.05)">1 2 3</text><text x="20" y="80" font-size="8" fill="rgba(255,255,255,0.05)">$ € £</text></svg>');
    background-size: 200px 200px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.glossary-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.glossary-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.glossary-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.glossary-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Alphabet Navigation */
.alphabet-nav {
    background: var(--bg-secondary);
    padding: 1.5rem 0;
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.alphabet-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.alphabet-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.alphabet-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.alphabet-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.alphabet-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.alphabet-item.disabled:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
    transform: none;
}

/* Search Section */
.search-section {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.glossary-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: 1.125rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.25rem;
}

[dir="rtl"] .search-box i {
    left: auto;
    right: 1.25rem;
}

.search-results {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Categories Filter */
.categories-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.category-btn {
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover {
    background: var(--bg-accent);
    border-color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Terms Section */
.terms-section {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.terms-container {
    display: grid;
    gap: 2rem;
}

.letter-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.letter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.letter-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.letter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.terms-grid {
    display: grid;
    gap: 1.5rem;
}

.term-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.term-card:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

[dir="ltr"] .term-card:hover {
    transform: translateX(4px);
}

.term-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.term-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.term-english {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.term-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-accent);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.term-definition {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.term-example {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    border-right: 3px solid var(--primary-color);
    margin-top: 1rem;
}

[dir="ltr"] .term-example {
    border-right: none;
    border-left: 3px solid var(--primary-color);
}

.term-example-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.term-example-text {
    color: var(--text-secondary);
    font-style: italic;
}

.term-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.term-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.term-action:hover {
    color: var(--primary-color);
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

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

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
}

/* ===== ZAKAT CALCULATOR STYLES ===== */
.zakat-header {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.zakat-header::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"><path d="M50 10 L60 30 L80 30 L65 45 L70 65 L50 50 L30 65 L35 45 L20 30 L40 30 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
    animation: float 20s linear infinite;
}

.zakat-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.zakat-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.zakat-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.zakat-description {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Section */
.zakat-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

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

/* Zakat Tabs */
.zakat-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: var(--bg-accent);
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calc-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.calc-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-card h3 i {
    color: var(--success-color);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 0.875rem;
    padding-left: 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

[dir="rtl"] .input-wrapper input {
    padding-left: 0.875rem;
    padding-right: 3rem;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--success-color);
    background: var(--bg-primary);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
}

[dir="rtl"] .input-icon {
    left: auto;
    right: 1rem;
}

.input-help {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.nisab-info {
    background: var(--bg-accent);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-right: 3px solid var(--warning-color);
}

[dir="ltr"] .nisab-info {
    border-right: none;
    border-left: 3px solid var(--warning-color);
}

.nisab-info p {
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

/* Results Card */
.results-card {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.results-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.result-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.detail-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.detail-value {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

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

.info-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--success-color), var(--success-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.info-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-accent);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== COMMODITIES SPECIFIC STYLES ===== */
.ticker-section {
    background: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-ticker {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.price-ticker::-webkit-scrollbar {
    display: none;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    transition: var(--transition);
}

.ticker-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ticker-item i {
    font-size: 1.5rem;
}

.ticker-item.gold i {
    color: #FFD700;
}

.ticker-item.silver i {
    color: #C0C0C0;
}

.ticker-item.oil i {
    color: #000000;
}

.ticker-item.platinum i {
    color: #E5E4E2;
}

.ticker-name {
    font-weight: 600;
}

.ticker-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ticker-change {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.ticker-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.ticker-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.commodities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.commodity-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: var(--transition);
}

.commodity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.commodity-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.commodity-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.gold-icon,
.silver-icon {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

.silver-icon {
    background: rgba(192, 192, 192, 0.2);
    color: #C0C0C0;
}

.oil-icon {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
}

.platinum-icon {
    background: rgba(229, 228, 226, 0.2);
    color: #E5E4E2;
}

.gas-icon {
    background: rgba(255, 140, 0, 0.2);
    color: #FF8C00;
}

.wheat-icon {
    background: rgba(218, 165, 32, 0.2);
    color: #DAA520;
}

.commodity-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.commodity-unit {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.commodity-price {
    margin-bottom: 1rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.price-change {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
}

.price-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.price-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.price-details {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.detail-row span:first-child {
    color: var(--text-secondary);
}

.detail-row span:last-child {
    font-weight: 500;
}

.commodity-footer {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.commodity-action {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.commodity-action:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Calculator Section */
.calculator-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.calculator-section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.gold-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.gold-info-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.gold-info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.gold-info-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.gold-info-card li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
}

/* Table View */
.commodities-table {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.commodities-table table {
    width: 100%;
    border-collapse: collapse;
}

.commodities-table th,
.commodities-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

[dir="ltr"] .commodities-table th,
[dir="ltr"] .commodities-table td {
    text-align: left;
}

.commodities-table th {
    background: var(--bg-accent);
    font-weight: 600;
}

.commodities-table tr:hover {
    background: var(--bg-accent);
}

/* ===== PORTFOLIO TRACKER STYLES ===== */
.portfolio-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.portfolio-stats {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-controls {
    padding: 2rem 0;
    background: var(--bg-primary);
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-buttons {
    display: flex;
    gap: 1rem;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.control-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.control-btn.primary:hover {
    background: var(--primary-dark);
}

/* Portfolio Table */
.portfolio-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.portfolio-table {
    width: 100%;
    border-collapse: collapse;
}

.portfolio-table th,
.portfolio-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

[dir="ltr"] .portfolio-table th,
[dir="ltr"] .portfolio-table td {
    text-align: left;
}

.portfolio-table th {
    background: var(--bg-accent);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.portfolio-table tr:hover {
    background: var(--bg-accent);
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.asset-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-accent);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
}

.asset-name {
    font-weight: 600;
    color: var(--text-primary);
}

.asset-symbol {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.price-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-change.positive {
    color: var(--success-color);
}

.price-change.negative {
    color: var(--error-color);
}

.portfolio-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Charts Section */
.charts-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.chart-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.chart-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Modal Styles */
.modal,
.currency-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 2rem;
}

.modal.active,
.currency-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-content,
.currency-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error-color);
    color: white;
}

.modal-body {
    padding: 2rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner-financial {
    display: inline-block;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== UTILITIES ===== */
.chart-container {
    position: relative;
    height: 300px;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px);
    transition: var(--transition);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

[dir="rtl"] .toast {
    right: auto;
    left: 2rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .calculator-layout,
    .calculator-grid,
    .gold-calculator-grid,
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tool-title,
    .glossary-title,
    .zakat-title {
        font-size: 2rem;
    }
    
    .tool-description,
    .glossary-description,
    .zakat-description {
        font-size: 1rem;
    }
    
    .alphabet-item {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .categories-filter {
        justify-content: center;
    }
    
    .term-card {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .result-summary {
        grid-template-columns: 1fr;
    }
    
    .result-item.highlight {
        grid-column: span 1;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .price-ticker {
        justify-content: flex-start;
    }
    
    .commodities-grid {
        grid-template-columns: 1fr;
    }
    
    .commodities-table {
        overflow-x: auto;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .portfolio-table {
        font-size: 0.875rem;
    }
    
    .portfolio-table th:nth-child(n+4),
    .portfolio-table td:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 480px) {
    .tool-icon,
    .glossary-icon,
    .zakat-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
    
    .results-card {
        padding: 1.5rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== DARK MODE SUPPORT ===== */
[data-theme="dark"] .ticker-item.oil i {
    color: #666;
}

[data-theme="dark"] .oil-icon {
    background: rgba(102, 102, 102, 0.2);
    color: #666;
}

[data-theme="dark"] .modal,
[data-theme="dark"] .currency-modal {
    background: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .tool-header,
[data-theme="dark"] .compound-header,
[data-theme="dark"] .glossary-header,
[data-theme="dark"] .zakat-header,
[data-theme="dark"] .portfolio-header {
    background: linear-gradient(135deg, var(--primary-dark), #0f172a);
}

/* ===== PRINT STYLES ===== */
@media print {
    .tool-header,
    .compound-header,
    .glossary-header,
    .zakat-header,
    .portfolio-header,
    .alphabet-nav,
    .search-section,
    .portfolio-controls,
    .control-btn,
    .action-btn,
    .modal,
    .tips-card,
    .education-section {
        display: none !important;
    }
    
    .term-card,
    .commodity-card,
    .calc-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .results-card {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
    
    .result-item {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
    }
}