:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --primary: #2c3e50;
    --accent: #3498db;
    --win: #27ae60;
    --loss: #c0392b;
    --text-main: #333;
    --text-light: #7f8c8d;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 480px;
}

header {
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    font-size: 24px;
    margin: 0;
    color: var(--primary);
}

header p {
    margin: 5px 0 0;
    color: var(--text-light);
    font-size: 14px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background: var(--primary);
    color: #fff;
    padding: 15px 20px;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.card-body {
    padding: 20px;
}

/* Inputs */
.input-group {
    margin-bottom: 15px;
}

.row {
    display: flex;
    gap: 15px;
}

.row .input-group {
    flex: 1;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-main);
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.3s;
}

input:focus {
    border-color: var(--accent);
    outline: none;
}

small {
    font-size: 11px;
    color: var(--text-light);
}

/* Buttons */
button {
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

button:hover {
    opacity: 0.9;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    font-size: 16px;
    margin-top: 10px;
}

.btn-reset {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-light);
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 20px;
}

/* Dashboard Styles */
.hidden {
    display: none;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.status-item {
    text-align: center;
}

.status-item span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
}

.status-item strong {
    font-size: 16px;
    color: var(--primary);
}

.trade-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.trade-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.trade-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.trade-info {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-win, .btn-loss {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-size: 18px;
}

.btn-win { background: var(--win); }
.btn-loss { background: var(--loss); }

.target-info {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* History Table */
.history-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    color: var(--text-light);
    font-weight: 600;
    font-size: 12px;
}

.result-win { color: var(--win); font-weight: bold; }
.result-loss { color: var(--loss); font-weight: bold; }

.error-msg {
    color: var(--loss);
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}









<!-- --- Footer & Social Media Styles --- -->
<style>
.app-footer {
    text-align: center;
    margin: 30px auto;
    padding-bottom: 20px;
    font-size: 10px;
    width: 80%;
    box-sizing: border-box;
padding-top: 200px;
    
}

.divider {
    height: 1px;
    background: #e0e0e0;
    margin: 1.5em 0;
}

.app-footer h3 {
    font-size: 1.3em;
    color: var(--primary);
    margin-bottom: 1em;
    text-align: center; /* সেন্টার করা */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8em;
    flex-wrap: wrap;
    margin-bottom: 1.5em;
}

.social-btn {
    text-decoration: none;
    color: white;
    padding: 0.4em 0.8em;
    border-radius: 50px;
    font-size: 0.75em;
    font-weight: 600;
    transition: transform 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Social Colors */
.whatsapp { background-color: #25D366; }
.email { background-color: #EA4335; }
.telegram { background-color: #0088cc; }
.pinterest { background-color: #E60023; }
.quora { background-color: #B92B27; }
.facebook { background-color: #1877F2; }
.blogspot { background-color: #FF5722; }
.youtube { background-color: #FF0000; }
.tiktok { background-color: #000000; }
.github { background-color: #333; }
.linkedin { background-color: #0077B5; }
.instagram { background-color: #C13584; }
.x { background-color: #1DA1F2; }
.onlyfans { background-color: #00BFFF; }





/* Broker Button Style */
.broker-section {
    background: #e8f4fd;
    padding: 0.4em;            /* ভিতরের খালি জায়গা সামান্য বাড়ানো */
    border-radius: 8px;
    margin-top: 1.5em;
    border: 1px dashed var(--accent);
    width: 80%;            /* বক্স ছোট করা */
    max-width: 60%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    text-align: center;        /* Broker section text সেন্টার */
}

.broker-section p {
    margin: 0 0 0.6em;         /* প্যারাগ্রাফের নিচের স্পেস কমানো */
    font-size: 0.9em;          /* ফন্ট সামান্য ছোট করা */
    font-weight: bold;
    color: var(--primary);
    text-align: center;        /* প্যারাগ্রাফ সেন্টার */
}

.btn-broker {
    display: inline-block;     /* block থেকে inline-block */
    margin: 0 auto;            /* সেন্টার করার জন্য */
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    text-decoration: none;
    padding: 0.6em 1em;        /* বাটন ছোট করা */
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;          /* ফন্ট সামান্য ছোট */
    animation: pulse 2s infinite;
white-space: nowrap;
    
}




.risk-disclaimer {
    font-size: 0.8em;
    color: #95a5a6;
    margin-top: 1.5em;
    line-height: 1.4;
    text-align: center; /* সেন্টার করা */
}

/* Broker Button Animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
</style>













